onaci / leaflet-velocity

Visualise velocity data on a leaflet layer
https://onaci.github.io/leaflet-velocity/
Other
598 stars 213 forks source link

leaflet-velocity does not update from wind-js-server #66

Closed TheDoebert closed 3 years ago

TheDoebert commented 3 years ago

Great project but I need a little help. When running demo.html in firefox and selecting wind-global the wind pattern is always the same. No errors in console when running npm in leaflet-velocity or wind-js-server. XML Parsing Error: syntax error for wind-global.json Line Number 1, Column 1 in firefox. If I take the most recent json-data from wind-js-server & copy to demo folder in leaflet-velocity and rename it to wind-global.json the wind pattern is updated. Running on windows 10 system. I placed wind-js-server folder in the leaflet-velocity main directory. I am guessing a path needs changed being I am using windows but don't know for sure. Thanks and any help would be appreciated.

LukePrior commented 3 years ago

The example does not communicate with wind-js-server this functionality needs to be added by yourself.