onaci / leaflet-velocity

Visualise velocity data on a leaflet layer

Home Page:https://onaci.github.io/leaflet-velocity/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use with CRS.Simple coordinate system

janzikmund opened this issue · comments

I want to use Velocity with Leaflet's Custom Coordinate Reference System, but even though something shows up, the results look far away from what they should, see a JS Fiddle of how far I got.

Basically I made a 10x10 Velocity grid, and also use a 1-10 x 1-10 custom coordinates grid in Leaflet. The biggest issues I see are:

  • speed of particles is inverse to zoom, so the more I zoom in, the slower they become. Imo their speed should stay constant or become faster
  • for some reason they only move vertically, but the dataset is taken from sample Wind GBR where they also move horizontally so not sure why I don't see it?

Basically I am wondering - is Velocity able to work with Simple Custom Reference System at all through supplying matching dataset JSON and tweaking its settings, or does it require basic Earth Map only? Thanks a lot

commented

I also encountered the same problem. Is there a solution?

Me too

CRS is now inherited from leaflet map options