PDA

View Full Version : [CLOSED] MapView on iPhone recenters itself automatically when navigating



nacef_labidi
24 Aug 2011, 1:43 AM
Hi,
I have a Map view configured with useCurrentLocation: true

When navigating on the map and zooming on markers, the map is resetted automatically to the current location (detected with the gps). This is very annoying when looking for markers.

Is this a bug or something that I have done wrong ?

Thx

chandramuralis
24 Aug 2011, 10:56 AM
This is happening because you've set useCurrentLocation: true, when you enable this property, map control will automatically receives location change event and it will update the current location in the map.
If you want to show your current location only once then probably get current location window object and then set the mapCenter with that location. This way your map will not be updated automatically.

Regards,
Murali.

mike.estes
29 Aug 2011, 9:18 AM
I've marked this as closed