public class

Marker

extends Billboard
java.lang.Object
   ↳ com.carto.vectorelements.VectorElement
     ↳ com.carto.vectorelements.Billboard
       ↳ com.carto.vectorelements.Marker

Class Overview

A billboard element with a static bitmap that can be displayed on the map.

Summary

Public Constructors
Marker(Billboard baseBillboard, MarkerStyle style)
Constructs a Marker object with the specified style and attaches it to a billboard element.
Marker(Geometry geometry, MarkerStyle style)
Constructs a Marker object from a geometry object and a style.
Marker(MapPos pos, MarkerStyle style)
Constructs a Marker object from a map position and a style.
Public Methods
synchronized void delete()
MarkerStyle getStyle()
Returns the style of this marker.
void setStyle(MarkerStyle style)
Sets the style for this marker.
[Expand]
Inherited Methods
From class com.carto.vectorelements.Billboard
From class com.carto.vectorelements.VectorElement
From class java.lang.Object

Public Constructors

public Marker (Billboard baseBillboard, MarkerStyle style)

Constructs a Marker object with the specified style and attaches it to a billboard element.

Parameters
baseBillboard The billboard this billboard will be attached to.
style The style that defines what this marker looks like.

public Marker (Geometry geometry, MarkerStyle style)

Constructs a Marker object from a geometry object and a style.

Parameters
geometry The geometry object that defines the location of this marker.
style The style that defines what this marker looks like.

public Marker (MapPos pos, MarkerStyle style)

Constructs a Marker object from a map position and a style.

Parameters
pos The map position that defines the location of this marker.
style The style that defines what this marker looks like.

Public Methods

public synchronized void delete ()

public MarkerStyle getStyle ()

Returns the style of this marker.

Returns
  • The style that defines what this marker looks like.

public void setStyle (MarkerStyle style)

Sets the style for this marker.

Parameters
style The new style that defines what this marker looks like.