How can I use leaflet-active-area plugin in WindyMap?
-
I want to use leaflet-active-area plugin in WindyMap.
How Can i do that?Link : https://github.com/Mappy/Leaflet-active-area
I tried
// add script < script src="L.activearea.js"> // add code windyInit(options, (windyAPI: any) => { const { map, overlays } = windyAPI .... map.setActiveArea('activeArea', true, true) } // add css .activeArea { position: absolute; top: 50px; left: 50px; right: 50px; height: 200px; border: 3px solid red; z-index: 1100; }
but it's not work
Plz Help Me!
-
Hi @sngy_chan
I think you are just assembling the application in a wrong way. I tried the plugin and it seems to be working good.
Here is my full code (just without the api key):
Here is how the result looks like:
I hope it helps.
-
@sngy_chan I find my mistake! thank you
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps