/
Interacting with points of interest
Interacting with points of interest
It’s possible to get notified about interaction with POI on the map. You can use MapView.addPoiListener
method to add a listener and MapView.removePoiListener
to remove it. The listener must implement PlaceListener
interface.
Example:
MapView.PlaceListener listener = new MapView.PlaceListener() {
@Override
public void onSingleTap(List<Place> places) {
Log.d("MapView", "onSingleTap");
}
@Override
public void onDoubleTap(List<Place> places) {
Log.d("MapView", "onDoubleTap");
}
@Override
public void onLongTap(List<Place> places) {
Log.d("MapView", "onLongTap");
}
};
mapView.addPoiListener(listener);
The places
argument will contain the list of all places around the tapped point.
, multiple selections available,
Related content
Map View (v2.1.x – 2.2.x)
Map View (v2.1.x – 2.2.x)
More like this
Places and coordinates (v2.1.x - Android)
Places and coordinates (v2.1.x - Android)
Read with this
Interacting with points of interest (v2.1.x – 2.2.x)
Interacting with points of interest (v2.1.x – 2.2.x)
More like this
Map (v2.1.x - Android)
Map (v2.1.x - Android)
More like this
Displaying points of interest (POI) on the map
Displaying points of interest (POI) on the map
More like this
Map Gestures (v2.1.x – 2.2.x)
Map Gestures (v2.1.x – 2.2.x)
More like this