Select to view content in your preferred language

onNavigatingChanged Triggering

218
2
3 weeks ago
RTC
by
Regular Contributor

Issue: With 200.8 onNavigatingChanged seems to be triggering just by a tap and hold on the map and not when the map pan/zooms/viewpoint actually changes.

The code inspector state; "The navigation status indicates whether the viewpoint is changing, due
to either user interaction (panning and/or zooming) or a viewpoint animation."

Question: Is this a bug or an error in the docs?

It seems like the onNavigatingChanged should not trigger unless the viewpoint changes to avoid false triggers.

0 Kudos
2 Replies
Destiny_Hochhalter
Esri Contributor

Hi @RTC,

Thanks for your question. I will update you once I have an answer to if this behavior is expected or not. In the meantime, I would suggest using the `MapView.onVisibleAreaChanged(perform:)` view modifier to identify when the map's visible area changes which corresponds with viewpoint changes.

0 Kudos
RTC
by
Regular Contributor

Thanks for the reply @Destiny_Hochhalter , Yes, that is what I have done for now.

0 Kudos