Skip to content
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

Closed
djrpascu opened this issue Dec 16, 2023 · 4 comments · Fixed by #278
Closed

MapView Zoom Resets when OnViewRendered Defined on View #276

djrpascu opened this issue Dec 16, 2023 · 4 comments · Fixed by #278

Comments

@djrpascu
Copy link

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.

@TimPurdum
Copy link
Collaborator

@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
Copy link
Author

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

@djrpascu
Copy link
Author

Installed 2.5.2 and confirmed issue is fixed. Much thanks!

@TimPurdum
Copy link
Collaborator

@djrpascu awesome news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants