dymaptic / GeoBlazor

Core Components for the Dymaptic GeoBlazor Library
MIT License
109 stars 19 forks source link

MapView Zoom Resets when OnViewRendered Defined on View #276

Closed djrpascu closed 11 months ago

djrpascu commented 11 months ago

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

TimPurdum commented 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.

djrpascu commented 11 months ago

@TimPurdum thanks for the quick PR on this. will keep an eye out for 2.5.2 and test. mahalo!

djrpascu commented 11 months ago

Installed 2.5.2 and confirmed issue is fixed. Much thanks!

TimPurdum commented 11 months ago

@djrpascu awesome news!