Difference in LocationDisplayAutoPanMode.Navigation behavior with other Maps SDKs

216
2
Jump to solution
09-04-2024 06:22 AM
GKmieliauskas
Esri Regular Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
williambohrmann3
Esri Contributor

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

View solution in original post

0 Kudos
2 Replies
williambohrmann3
Esri Contributor

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

0 Kudos
GKmieliauskas
Esri Regular Contributor

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.

0 Kudos