VMEMapListener

abstract class VMEMapListener

Interface definition of methods that are invoked when map related events occur.

Since

1.0

VMEMapListener mapListener = new VMEMapListener(){
@Override
public void mapSceneDidUpdate(VMESceneContext scene, VMEViewMode viewMode) {
Log.i(LOG_TAG, "Mode: " + viewMode.toString() + " Scene: " + scene.toString());
}
@Override
public void mapDidReceiveTapGesture(VMEPosition position) {
if (position==null) {
Log.i(MainActivity.LOG_TAG, "mapTapGesture outside of map " );
} else {
Log.i(MainActivity.LOG_TAG, "mapTapGesture position: " + position.toString());
}
}
};
mMapController.setMapListener(mapListener);

Constructors

Link copied to clipboard
fun VMEMapListener()

Functions

Link copied to clipboard
open fun mapDidReceiveTapGesture(position: VMEPosition?)

Notifies the listener that a tap gesture has occurred on map view.

Link copied to clipboard
open fun mapSceneDidUpdate(scene: VMESceneContext?, viewMode: VMEViewMode?)

Notifies the listener that the map's scene or view mode has changed.