Package org.neshan.mapsdk.model
Class Marker
- java.lang.Object
-
- org.neshan.mapsdk.internal.elements.MapElement
-
- org.neshan.mapsdk.model.Marker
-
public class Marker extends org.neshan.mapsdk.internal.elements.MapElement
A Marker that can be drawn on aMapView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Marker.InfoWindowObservable
class
Marker.InfoWindowObservableData
static interface
Marker.InfoWindowObservableNotifyType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObserver(MapView mapView)
java.lang.String
getDescription()
com.carto.styles.BalloonPopupStyle
getInfoWindowStyle()
LatLng
getLatLng()
java.lang.String
getMetadata(java.lang.String key)
com.carto.vectorelements.VectorElement
getRealElement()
java.lang.String
getTitle()
java.lang.Boolean
hasMetadata(java.lang.String key)
void
hideInfoWindow()
void
putMetadata(java.lang.String key, java.lang.String value)
org.neshan.mapsdk.internal.elements.MapElement
setBaseProjection(com.carto.projections.Projection baseProjection)
Marker
setDescription(java.lang.String description)
extra description for the marker that will be shown on windowInfoPopupMarker
setInfoWindowStyle(com.carto.styles.BalloonPopupStyle infoWindowStyle)
Marker
setLatLng(LatLng latLng)
Marker
setStyle(com.carto.styles.MarkerStyle style)
Marker
setTitle(java.lang.String title)
title of the marker that will be shown on windowInfoPopupvoid
showInfoWindow()
-
-
-
Constructor Detail
-
Marker
public Marker(LatLng latLng, com.carto.styles.MarkerStyle style)
-
-
Method Detail
-
showInfoWindow
public void showInfoWindow()
-
hideInfoWindow
public void hideInfoWindow()
-
addObserver
public void addObserver(MapView mapView)
-
getLatLng
public LatLng getLatLng()
-
setBaseProjection
public org.neshan.mapsdk.internal.elements.MapElement setBaseProjection(com.carto.projections.Projection baseProjection)
- Specified by:
setBaseProjection
in classorg.neshan.mapsdk.internal.elements.MapElement
-
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException
- Specified by:
getRealElement
in classorg.neshan.mapsdk.internal.elements.MapElement
- Throws:
NullProjectionException
-
hasMetadata
public java.lang.Boolean hasMetadata(java.lang.String key)
-
getMetadata
public java.lang.String getMetadata(java.lang.String key)
-
putMetadata
public void putMetadata(java.lang.String key, java.lang.String value)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public Marker setTitle(java.lang.String title)
title of the marker that will be shown on windowInfoPopup- Parameters:
title
-- Returns:
-
getDescription
public java.lang.String getDescription()
-
setDescription
public Marker setDescription(java.lang.String description)
extra description for the marker that will be shown on windowInfoPopup- Parameters:
description
-- Returns:
-
setStyle
public Marker setStyle(com.carto.styles.MarkerStyle style)
-
getInfoWindowStyle
public com.carto.styles.BalloonPopupStyle getInfoWindowStyle()
-
setInfoWindowStyle
public Marker setInfoWindowStyle(com.carto.styles.BalloonPopupStyle infoWindowStyle)
-
-