Package com.massifmaps.vectorelements
Class Marker
java.lang.Object
com.massifmaps.vectorelements.VectorElement
com.massifmaps.vectorelements.Billboard
com.massifmaps.vectorelements.Marker
A billboard element with a static bitmap that can be displayed on the map.
-
Constructor Summary
ConstructorsConstructorDescriptionMarker(MapPos pos, MarkerStyle style) Constructs a Marker object from a map position and a style.Marker(Geometry geometry, MarkerStyle style) Constructs a Marker object from a geometry object and a style.Marker(Billboard baseBillboard, MarkerStyle style) Constructs a Marker object with the specified style and attaches it to a billboard element. -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()Returns the style of this marker.voidsetStyle(MarkerStyle style) Sets the style for this marker.Methods inherited from class com.massifmaps.vectorelements.Billboard
getBaseBillboard, getBounds, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotationMethods inherited from class com.massifmaps.vectorelements.VectorElement
containsMetaDataKey, equals, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
-
Constructor Details
-
Marker
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.
-
Marker
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.
-
Marker
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.
-
-
Method Details
-
getStyle
Returns the style of this marker.- Returns:
- The style that defines what this marker looks like.
-
setStyle
Sets the style for this marker.- Parameters:
style- The new style that defines what this marker looks like.
-