Hi all,
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.
Any idea's?
Armand.
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
Done
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.
regards,
David
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:)
name:AGSMapViewDidEndPanningNotification object:nil];
Still not working. I can't figure out if the zoom/pan is user initiated, or otherwise.