FlightAware Discussions

Easy way to draw a polygone on the map


It would be great if there was a way to draw a polygone on dump1090-fa’s map (coordinates as GPS coordinates for example). Or is this already possible with a bit of hacking?


I hacked my polygone into /usr/share/dump1090-fa/html/layers.js

After line 19, that means after:
world.push(new ol.layer.Tile({
source: new ol.source.OSM(),
name: ‘osm’,
title: ‘OpenStreetMap’,
type: ‘base’,

I inserted:
//-- hm start ----------------
var traFeature = new ol.Feature({
geometry: new ol.geom.Polygon([[

var traSource= new ol.source.Vector({
features: [traFeature]

world.push(new ol.layer.Vector({
source: traSource,
style: new ol.style.Style({
stroke: new ol.style.Stroke({
color: ‘blue’,
width: 0.5
fill: new ol.style.Fill({
color: [0,0,255,0.05]
//-- hm end ------------------

That displays a layer of the TRA LAUTER, a German military training airspace. Just change the coordinates in the polygon and you can add your own polygon of interest.