Abolallaw

The new LocationDisplayManager, Bugs or Not

Discussion created by Abolallaw on Mar 13, 2014
Latest reply on Apr 29, 2015 by doneill-esristaff
Dears, Can anyone help me with the following scenario...

When I use LocationDisplayManager instead of the deprecated LocationService everything works fine but I am having side effects when I am trying to zoom programmatically to locations, the map will always zoom to current location after zooming to the provided location and if I do some panning on the map then try to zoom programmatically to any location the map then will zoom to completely different location which is not even my current location.

So I guess my question is, should I set some properties first to the LocationDisplayManager and why on earth changing location gots overridden ?!!!!!


this how I start the LocationDisplayManager

public void onStatusChanged(Object source, STATUS status) {
 
    if (source == _mapView && status == STATUS.INITIALIZED) {
  
_esriLS = _mapView.getLocationDisplayManager();
  
_esriLS.setAutoPanMode(AutoPanMode.OFF);

_esriLS.start();
  
    }
}

Outcomes