Closed djrpascu closed 11 months ago
@djrpascu thanks for the clear bug report and repro! I can confirm everything you're seeing. This is definitely a render-cycle issue between GeoBlazor and Blazor, as you discovered by removing OnViewRendered
. With any luck, I will be able to find a fairly simple fix.
@TimPurdum thanks for the quick PR on this. will keep an eye out for 2.5.2 and test. mahalo!
Installed 2.5.2 and confirmed issue is fixed. Much thanks!
@djrpascu awesome news!
The zoom value seems to reset when trying to pinch zoom or use zoom controls when the mapview first loads.
Reproduce Issue
Similar to the issue reported here: https://github.com/dymaptic/GeoBlazor/issues/188 @TimPurdum
Like in the issue above, if you pan the map first, then try zoom controls, the zoom is retained.
Remove
OnViewRendered="OnViewRendered"
from MapView in MyMapComponent.razor. Try again, and should work.