perliedman / leaflet-realtime

Put realtime data on a Leaflet map
ISC License
737 stars 169 forks source link

Earthquakes example: why markers re-appear on map, when I deselect a overlay layer? #182

Open uvula opened 3 years ago

uvula commented 3 years ago

A question about the earthquakes example.

I just started with leaflet and leaflet-realtime, and my JS knowhow is also not so deep (more Java). Great work! Thanks.

When I use the layer control area in the UI and turn off (both)

Finally I'm looking for such a solution. My prototyp is getting a geoJSON structure by a REST call. The "features" (Points) are logically "green/normal", some are "red/critical". So I want to let the user have filter with the overlay layers and select "red" and/or "green". So, if not interested in "green" markers, the user can turn off.

I digging in the internet a long time, but can't find a working solution.

Any hint, especially making earthquakes example having such behavior. So I can select overlay 1 and/or 2.

Thanks in advance. Uwe / Germany

tika-iteratec commented 2 years ago

Hi, did you find any solution? Thanks