Data Receiver Map Layer¶
Statement of need¶
Mode S data is provided by one or more jet1090 processes, which decode data from various sources like software-defined radios or network streams. Each source corresponds to a receiver at a specific location.
The tangram_jet1090 plugin provides a map layer to visualize the positions of these receivers, allowing users to see where their data is coming from.
Implementation¶
The implementation is a Vue component, SensorsLayer.vue, which is registered as a map overlay by the tangram_jet1090 frontend plugin. It uses Deck.gl to render the sensor locations.
- When the map is initialized, the component fetches a list of sensors from the
/sensorsAPI endpoint. - This endpoint, provided by the
tangram_jet1090backend, proxies the request to the configuredjet1090service. The sensor information must be configured within thejet1090instance itself. See the jet1090 configuration guide for details. - The component then maps the sensor data into an array of objects suitable for Deck.gl, with each object containing a
positionarray ([longitude, latitude]),name, andaircraft_count. - Finally, it creates a Deck.gl
ScatterplotLayerto render the sensor locations as points on the map. The layer'sonHoverproperty is used to display a tooltip with the sensor's name and the number of aircraft it is currently tracking.