-
public class MarkerInfoWindow extends BasicInfoWindow
org.osmdroid.views.overlay.infowindow.MarkerInfoWindow is the default implementation of org.osmdroid.views.overlay.infowindow.InfoWindow for a org.osmdroid.views.overlay.Marker.
It handles
R.id.bubble_title = getTitle, R.id.bubble_subdescription = getSubDescription, R.id.bubble_description = getSnippet, R.id.bubble_image = getImage
Description and sub-description interpret HTML tags (in the limits of the Html.fromHtml(String) API). Clicking on the bubble will close it.
-
-
Constructor Summary
Constructors Constructor Description MarkerInfoWindow(int layoutResId, MapView mapView)
-
Method Summary
Modifier and Type Method Description MarkergetMarkerReference()reference to the Marker on which it is opened. voidonOpen(Object item)voidonClose()-
Methods inherited from class org.osmdroid.views.overlay.infowindow.InfoWindow
close, closeAllInfoWindowsOn, draw, getMapView, getOpenedInfoWindowsOn, getRelatedObject, getView, isOpen, onDetach, open, setRelatedObject -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MarkerInfoWindow
MarkerInfoWindow(int layoutResId, MapView mapView)
- Parameters:
layoutResId- layout that must contain these ids: bubble_title,bubble_description,bubble_subdescription, bubble_image
-
-
Method Detail
-
getMarkerReference
Marker getMarkerReference()
reference to the Marker on which it is opened. Null if none.
-
onClose
void onClose()
-
-
-
-