public class MarkerInfoWindow extends BasicInfoWindow
MarkerInfoWindow
is the default
implementation of InfoWindow
for a
Marker
.
It handles
R.id.bubble_title = OverlayWithIW.getTitle()
,
R.id.bubble_subdescription = OverlayWithIW.getSubDescription()
,
R.id.bubble_description = OverlayWithIW.getSnippet()
,
R.id.bubble_image = Marker.getImage()
Description and sub-description interpret HTML tags (in the limits of the Html.fromHtml(String) API).
Clicking on the bubble will close it.
Modifier and Type | Field and Description |
---|---|
protected Marker |
mMarkerRef |
mDescriptionId, mImageId, mSubDescriptionId, mTitleId, UNDEFINED_RES_ID
mIsVisible, mMapView, mRelatedObject, mView
Constructor and Description |
---|
MarkerInfoWindow(int layoutResId,
MapView mapView) |
Modifier and Type | Method and Description |
---|---|
Marker |
getMarkerReference()
reference to the Marker on which it is opened.
|
void |
onClose() |
void |
onOpen(Object item) |
close, closeAllInfoWindowsOn, draw, getMapView, getOpenedInfoWindowsOn, getRelatedObject, getView, isOpen, onDetach, open, setRelatedObject
protected Marker mMarkerRef
public MarkerInfoWindow(int layoutResId, MapView mapView)
layoutResId
- layout that must contain these ids: bubble_title,bubble_description,
bubble_subdescription, bubble_imagemapView
- public Marker getMarkerReference()
public void onOpen(Object item)
onOpen
in class BasicInfoWindow
public void onClose()
onClose
in class BasicInfoWindow