Closed ecmanghi closed 6 years ago
hi @ecmanghi, i've experienced behavior similar to what you're reporting.
i'm not sure what would be best internally to resolve the problem but i'll keep thinking about it.
@ecmanghi i finally had a chance to sit down and sort out how to get this lib building locally again and made a few changes that seem to have improved drawing behavior.
can you test with master
when you have time and confirm whether this resolves the problem you reported a few months back and reopen this issue if appropriate?
thanks!
I'm trying to determine if this is something happening locally on my machine or if it's more widespread.
Using the example for switching a vector basemap (http://esri.github.io/esri-leaflet/examples/vector-basemap.html) if I pan the map and immediately switch to another basemap, the layer does not reset back to the correct position. It's stuck when I panned to or the new layer doesn't appear. The layer will only correct itself after I pan or zoom again.
My workaround right now is to use map.panBy([1,1]) after the switch to nudge the map to get the layer to appear correctly.
Before panning
After panning
After basemap switch