@marienka
Why can't I open this URL?
Tip Error: 403
If this problem cannot be solved, can you pack the installation files and email them? How else do we continue to use it?
In addition, please give me a windy official email
@silvestrejose I think I found the issue you're having, if its the same as mine. My code was all correct, my layers were constructed, everything was fine. I went and built a barebones Leaflet map and added layer control with no issue, so I couldn't figure it out. Eventually I cleared all my code and started fresh and when inspecting I noticed my control div greyed out, sure enough it had a display: none; rule in Windy's CSS which isn't documented anywhere. I didn't even think about this and feel kind of silly for it.
#windy #map_container .leaflet-control-container {
display: none;
}
So you'll just have to override this rule and all will be well in the world. :)
Yes I saw this hack before, but it seems that it will keep loading the lib over and over, every time user loads the component. So I guess the best solution is to stick with adding and removing the script. To avoid the app to consume all the browser resources.
Hopefully we will have a better official solution implemented by @ivo, in a near future.
It would be great if we could have something like:
import { Windy } from 'windy';
const map = this.windy.create('#windy', {
lat: {{ LAT }},
lng: {{ LNG }},
zoom: {{ ZOOM }}
...ANY_LEAFLET_PROPERTY_AVAILABLE
});
and having Windy extending leaflet, so the map returned by the create() would allow us to have access to any leaflet properties/methods
@fastseas Great!! Thanks for you time. It's now working. The reason was The special characters, because I had authorized my domain... @ivo FYI The special characters in domain cause problems with API4. It's maybe good idea to mention this on the API-page (https://api4.windy.com/api-key/)?
hi @ivo - any thoughts about this? forcing a refresh of the model data and the view without having to reload the whole page? this appear to be an issue in https://www.windy.com/ as well - no auto update.
I have not looked myself, but have you gone digging through the code for the isoline plugin:
https://api4.windy.com/assets/v/16.1.0-cc030470/plugins/isolines.js
You might find there are parameters you might manage to configure; or you might be able to make your own custom variant to use in place of this ootb plugin.
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps