Feature request: hiding compass when user is interacting with the map - excluding programmatic navigation

203
2
Jump to solution
3 weeks ago
esp1rl
by
New Contributor III

Hi, our app has a map with compass and other buttons on top of it (buttons for controlling layers, compass navigation etc.). It is wanted to hide the UI when the user is interacting with the map. For this we tried using IsNavigating property, which works. But it also lead to UI being hidden in programmatic cases like when changing AutoPanMode or when setting Viewpoint. For us that is not wanted behavior.

In short we want to hide UI when user is interacting with the map, but not when doing programmatic calls that navigates the map.

Looking at decompiled source code I can see that the CoreGeoView actually has a separation between IsNavigating and IsInteracting, but that is not exposed in .NET GeoView or MAUI GeoView.

esp1rl_0-1712568084560.png

My question is, would it be possible to expose the IsInteracting property?

 

 

 

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

There's no out-of-the-box way to do this, other than listening for gestures yourself and turn it on-and-off based on that. The IsInteracting property isn't quite what you're looking for either, as it really an internal flag to set some rendering optimizations that originally started around rendering more optimized during certain interactions, but doesn't actually apply to all interactions (like Flick and double-tap-zoom are probably interactions from your point of view, but from our point of view it's actually programmatic animations)

View solution in original post

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

There's no out-of-the-box way to do this, other than listening for gestures yourself and turn it on-and-off based on that. The IsInteracting property isn't quite what you're looking for either, as it really an internal flag to set some rendering optimizations that originally started around rendering more optimized during certain interactions, but doesn't actually apply to all interactions (like Flick and double-tap-zoom are probably interactions from your point of view, but from our point of view it's actually programmatic animations)

0 Kudos
esp1rl
by
New Contributor III

Thanks for the answer Morten. I'll check if listening to all types of gestures can give the experience that is wanted.

0 Kudos