sakitam-fdd / wind-layer

:flags: :rocket: wind-layer | a openlayers && maptalks && amap && bmap && leaflet && mapbox-gl && maplibre-gl extension like windy.com for weather visualization
https://sakitam-fdd.github.io/wind-layer/
Other
510 stars 139 forks source link

The mapbox-wind's particles and scalarFill layer cannot overlap with each other #184

Closed echohye closed 4 months ago

echohye commented 10 months ago

Why do we need to use two different images for the example? and the color spot image and particle layer seem to overlap. image

But when I use the same image, it seems like can't overlap each other. image

echohye commented 10 months ago

Can we just use one image to make two layers overlap each other😃 image

sakitam-fdd commented 10 months ago

@echohye I noticed that you may be looking at an older version of the example,In the old version, the color map used epsg:4326 and the particle layer used epsg:3857, they can't be mixed.

After version 2.0.0-alpha, it may be possible to harmonize the data source source (of course, there are other issues at the moment, and it's still not really very harmonized), and use standard Mercator projection data tiles whenever possible, as detailed in the https://github.com/sakitam-fdd/wind-layer/blob/master/examples/wind-particles.html.

But it's not perfect yet, I can take it and perfect it, but not right now

sakitam-fdd commented 4 months ago

release in https://github.com/sakitam-fdd/wind-layer/releases/tag/%40sakitam-gis%2Fmapbox-wind%402.0.0

examples: