Some SDKs have feature when using LocationDisplayAutoPanMode.Navigation:
"If the visible map extent is changed by the user navigating the map interactively, or by a programmatic navigation method, this will cause AutoPanMode to be reset to OFF. However, if the user double-taps or pinches to zoom the map only, the AutoPanMode remains as NAVIGATION while the map is zoomed in or out, allowing users to easily zoom the map while in this mode." Text was taken from Android API reference
Feature works on AppStudio too.
But it doesn't work on .NET MAUI. There is no text about that feature in ArcGIS Maps SDK for .NET.
Is it bug or by design?
Solved! Go to Solution.
Hi @GKmieliauskas
I am not experiencing any unexpected behaviors on .NET MAUI platforms. Zooming in/out is not changing the auto pan mode. Panning the map is changing the auto pan mode. Here is the sample code I used for debugging. A breakpoint placed inside this event handler which is being hit when panning and not when zooming. I'd be happy to take another look if you have a reproducer.
Thanks! -William
Hi @GKmieliauskas
I am not experiencing any unexpected behaviors on .NET MAUI platforms. Zooming in/out is not changing the auto pan mode. Panning the map is changing the auto pan mode. Here is the sample code I used for debugging. A breakpoint placed inside this event handler which is being hit when panning and not when zooming. I'd be happy to take another look if you have a reproducer.
Thanks! -William
Thanks @williambohrmann3 . Yes, it works. In addition it works not only in Navigation autopanmode, but also in all modes except Off. It would be nice to have update documentation.