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.MapElementA Marker that can be drawn on aMapView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMarker.InfoWindowObservableclassMarker.InfoWindowObservableDatastatic interfaceMarker.InfoWindowObservableNotifyType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObserver(MapView mapView)java.lang.StringgetDescription()com.carto.styles.BalloonPopupStylegetInfoWindowStyle()LatLnggetLatLng()java.lang.StringgetMetadata(java.lang.String key)com.carto.vectorelements.VectorElementgetRealElement()java.lang.StringgetTitle()java.lang.BooleanhasMetadata(java.lang.String key)voidhideInfoWindow()voidputMetadata(java.lang.String key, java.lang.String value)org.neshan.mapsdk.internal.elements.MapElementsetBaseProjection(com.carto.projections.Projection baseProjection)MarkersetDescription(java.lang.String description)extra description for the marker that will be shown on windowInfoPopupMarkersetInfoWindowStyle(com.carto.styles.BalloonPopupStyle infoWindowStyle)MarkersetLatLng(LatLng latLng)MarkersetStyle(com.carto.styles.MarkerStyle style)MarkersetTitle(java.lang.String title)title of the marker that will be shown on windowInfoPopupvoidshowInfoWindow()
-
-
-
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:
setBaseProjectionin classorg.neshan.mapsdk.internal.elements.MapElement
-
getRealElement
public com.carto.vectorelements.VectorElement getRealElement() throws NullProjectionException- Specified by:
getRealElementin 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)
-
-