I can't seem to find a way to get notified when the user has moved the map.
I want to know this, because when he/she did, I don't want to update the map to the user location anymore.
Can you be more specific
Elaborations would be useful.
Sorry, I'm on the iOS SDK, Objective-C.
So when a user moves the map with his finger, I would like to be notified.
Robert Scheitlin, GISP or Timothy Hales can you move this to its rightful home...I don't have Moderator access to the main Developer's level
Hi Armand van der Zwan,
I'll assume this is for version 10.2.4
You can try implementing AGSMapViewTouchDelegate and using one of the didMoveTapAndHoldAtPoint: methods. This way you will know when the user stops panning the map.
But I don't quite understand what you mean by don't wan't to update the map to user location.
Can you explain in more detail please.
Thanks. I will look into it.
I want the map not to center to the user location the moment the user moves the map.
didMoveTapAndHoldAtPoint is not triggered when the user is moving the map...
I got it working with:
// register for pan notifications
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToEnvChange:)
Still not working. I can't figure out if the zoom/pan is user initiated, or otherwise.
Take a look at lastChangeFromInteraction on AGSMapView (it's inherited from AGSMapViewBase).
When you receive the AGSMapViewDidEndPanningNotification or AGSMapViewDidEndZoomingNotification notification, check that and it should tell you what you want.
Hope that helps,
Did my reply above fix your problem? If so, could you mark it as answered so others can find this please?
Retrieving data ...