-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapView Zoom Resets when OnViewRendered Defined on View #276
Comments
@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 |
@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:
#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.The text was updated successfully, but these errors were encountered: