Class Marker


  • public class Marker
    extends org.neshan.mapsdk.internal.elements.MapElement
    A Marker that can be drawn on a MapView
    • 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 class org.neshan.mapsdk.internal.elements.MapElement
      • getRealElement

        public com.carto.vectorelements.VectorElement getRealElement()
                                                              throws NullProjectionException
        Specified by:
        getRealElement in class org.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)