6.3.1.7.11. MapEventSource

public class MapEventSource extends MapContentProviderHelper

6.3.1.7.11.1. Fields

6.3.1.7.11.1.1. BUNDLE_DONE_KEY

protected static final String BUNDLE_DONE_KEY

6.3.1.7.11.1.2. BUNDLE_ID_KEY

protected static final String BUNDLE_ID_KEY

6.3.1.7.11.1.3. BUNDLE_TYPE_KEY

protected static final String BUNDLE_TYPE_KEY

6.3.1.7.11.1.4. BUNDLE_X_KEY

protected static final String BUNDLE_X_KEY

6.3.1.7.11.1.5. BUNDLE_Y_KEY

protected static final String BUNDLE_Y_KEY

6.3.1.7.11.1.6. BUNDLE_ZOOM_KEY

protected static final String BUNDLE_ZOOM_KEY

6.3.1.7.11.1.7. EVENT_onExtentChanged

protected static final int EVENT_onExtentChanged

6.3.1.7.11.1.8. EVENT_onLayerAdded

protected static final int EVENT_onLayerAdded

6.3.1.7.11.1.9. EVENT_onLayerChanged

protected static final int EVENT_onLayerChanged

6.3.1.7.11.1.10. EVENT_onLayerDeleted

protected static final int EVENT_onLayerDeleted

6.3.1.7.11.1.11. EVENT_onLayerDrawFinished

protected static final int EVENT_onLayerDrawFinished

6.3.1.7.11.1.12. EVENT_onLayerDrawStarted

protected static final int EVENT_onLayerDrawStarted

6.3.1.7.11.1.13. EVENT_onLayersReordered

protected static final int EVENT_onLayersReordered

6.3.1.7.11.1.14. SKIP_TIMEOUT

public static final int SKIP_TIMEOUT

6.3.1.7.11.1.15. mFreeze

protected boolean mFreeze

6.3.1.7.11.1.16. mHandler

protected static Handler mHandler

6.3.1.7.11.1.17. mLastMessages

protected Map<Integer, Long> mLastMessages

6.3.1.7.11.1.18. mListeners

protected List<MapEventListener> mListeners

6.3.1.7.11.2. Constructors

6.3.1.7.11.2.1. MapEventSource

public MapEventSource(Context context, File mapPath, LayerFactory layerFactory)

6.3.1.7.11.3. Methods

6.3.1.7.11.3.1. addListener

public void addListener(MapEventListener listener)

Add new listener for map events

Parameters:
  • listener – A listener class implements MapEventListener adding to listeners array

6.3.1.7.11.3.2. createHandler

protected void createHandler()

Create handler for messages

6.3.1.7.11.3.3. freeze

public void freeze()

6.3.1.7.11.3.4. onDrawFinished

public void onDrawFinished(int id, float percent)

6.3.1.7.11.3.5. onExtentChanged

protected void onExtentChanged(float zoom, GeoPoint center)

Send extent change event to all listeners

Parameters:
  • zoom – A zoom level
  • center – A map center coordinates

6.3.1.7.11.3.6. onLayerAdded

protected void onLayerAdded(ILayer layer)

Send layer added event to all listeners

Parameters:
  • layer – A new layer

6.3.1.7.11.3.7. onLayerChanged

protected void onLayerChanged(ILayer layer)

Send layer changed event to all listeners

Parameters:
  • layer – A changed layer

6.3.1.7.11.3.8. onLayerDeleted

protected void onLayerDeleted(int id)

Send layer delete event to all listeners

Parameters:
  • id – A deleted layer identificator

6.3.1.7.11.3.9. onLayerDrawFinished

protected void onLayerDrawFinished(int id, float percent)

Send layers draw finished event to all listeners

6.3.1.7.11.3.10. onLayerDrawStarted

protected void onLayerDrawStarted()

Send layers draw started event to all listeners

6.3.1.7.11.3.11. onLayersReordered

protected void onLayersReordered()

Send layers reordered event to all listeners

6.3.1.7.11.3.12. removeListener

public void removeListener(MapEventListener listener)

Remove listener from listeners

Parameters:
  • listener – A listener class implements MapEventListener removing from listeners array

6.3.1.7.11.3.13. thaw

public void thaw()