windyplugin-module-airspaces
v0.0.52
Published
airspace module
Downloads
9
Readme
Airspaces module
This module loads openAIP airspaces and displays it in a div that you provide.
It returns an object with:
Methods:
findAsp({lat:x,lon:x}) returns {txt:text for innerHTML, aspAr:[airspaces found])
clearAsp() // clears all the layers highlighted
appendAspListToDiv(id of the div where the airspace list should be appended)
opac(0-1) //sets the opacity of the airspace polygons
Property:
plugins_openAIPasp object with references to the data, DOM elements and leaflet layers.
in config.js:
Load as dependency from: 'https://unpkg.com/[email protected]/dist/airspaces.js'
in plugin:
import xxx from '@windy/windy-plugin-module-airspaces'