public class MarkerOptions extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
MarkerOptions.Property |
Constructor and Description |
---|
MarkerOptions()
Creates new MarkerOptions object.
|
MarkerOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Point |
getAnchorPoint()
Returns value of anchorPoint property.
|
Animation |
getAnimation()
Returns value of animation property.
|
Attribution |
getAttribution()
Returns value of attribution property.
|
boolean |
getClickable()
Returns value of clickable property.
|
boolean |
getCrossOnDrag()
Returns value of crossOnDrag property.
|
java.lang.String |
getCursor()
Returns value of cursor property.
|
boolean |
getDraggable()
Returns value of draggable property.
|
Icon |
getIcon()
Returns value of icon property.
|
java.lang.String |
getIconString()
Returns value of iconString property.
|
Symbol |
getIconSymbol()
Returns value of iconSymbol property.
|
MarkerLabel |
getLabel()
Returns value of label property.
|
java.lang.String |
getLabelString()
Returns value of labelString property.
|
double |
getOpacity()
Returns value of opacity property.
|
boolean |
getOptimized()
Returns value of optimized property.
|
MarkerPlace |
getPlace()
Returns value of place property.
|
LatLng |
getPosition()
Returns value of position property.
|
MarkerShape |
getShape()
Returns value of shape property.
|
java.lang.String |
getTitle()
Returns value of title property.
|
boolean |
getVisible()
Returns value of visible property.
|
double |
getZIndex()
Returns value of zIndex property.
|
void |
setAnchorPoint(Point value)
Sets new value for anchorPoint property.
|
void |
setAnimation(Animation value)
Sets new value for animation property.
|
void |
setAttribution(Attribution value)
Sets new value for attribution property.
|
void |
setClickable(boolean value)
Sets new value for clickable property.
|
void |
setCrossOnDrag(boolean value)
Sets new value for crossOnDrag property.
|
void |
setCursor(java.lang.String cursor)
Sets new value for cursor property.
|
void |
setDraggable(boolean value)
Sets new value for draggable property.
|
void |
setIcon(Icon value)
Sets new value for icon property.
|
void |
setIconString(java.lang.String value)
Sets new value for iconString property.
|
void |
setIconSymbol(Symbol value)
Sets new value for iconSymbol property.
|
void |
setLabel(MarkerLabel value)
Sets new value for label property.
|
void |
setLabelString(java.lang.String value)
Sets new value for labelString property.
|
void |
setOpacity(double value)
Sets new value for opacity property.
|
void |
setOptimized(boolean value)
Sets new value for optimized property.
|
void |
setPlace(MarkerPlace value)
Sets new value for place property.
|
void |
setPosition(LatLng value)
Sets new value for position property.
|
void |
setShape(MarkerShape value)
Sets new value for shape property.
|
void |
setTitle(java.lang.String value)
Sets new value for title property.
|
void |
setVisible(boolean value)
Sets new value for visible property.
|
void |
setZIndex(double value)
Sets new value for zIndex property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public MarkerOptions()
@Deprecated public MarkerOptions(Map map)
map
- owner Map objectpublic Point getAnchorPoint()
Contains the offset from the marker's position to the tip of an InfoWindow that has been opened with the marker as anchor.
setAnchorPoint(com.teamdev.jxmaps.Point)
public void setAnchorPoint(Point value)
value
- new property valuegetAnchorPoint()
public boolean getClickable()
If true, the marker receives mouse and touch events. Default value is true.
setClickable(boolean)
public void setClickable(boolean value)
value
- new property valuegetClickable()
public boolean getDraggable()
If true, the marker can be dragged. Default value is false.
setDraggable(boolean)
public void setDraggable(boolean value)
value
- new property valuegetDraggable()
public boolean getCrossOnDrag()
If false, disables cross that appears beneath the marker when dragging. This option is true by default.
setCrossOnDrag(boolean)
public void setCrossOnDrag(boolean value)
value
- new property valuegetCrossOnDrag()
public boolean getOptimized()
Optimization renders many markers as a single static element. Optimized rendering is enabled by default. \Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only).
setOptimized(boolean)
public void setOptimized(boolean value)
value
- new property valuegetOptimized()
public boolean getVisible()
If true, the marker is visible
setVisible(boolean)
public void setVisible(boolean value)
value
- new property valuegetVisible()
public java.lang.String getCursor()
Represents mouse cursor to show on hover
setCursor(java.lang.String)
public void setCursor(java.lang.String cursor)
cursor
- new property valuegetCursor()
public java.lang.String getTitle()
Contains rollover text
setTitle(java.lang.String)
public void setTitle(java.lang.String value)
value
- new property valuegetTitle()
public double getOpacity()
Contains the marker's opacity between 0.0 and 1.0.
setOpacity(double)
public void setOpacity(double value)
value
- new property valuegetOpacity()
public double getZIndex()
All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.
setZIndex(double)
public void setZIndex(double value)
value
- new property valuegetZIndex()
public LatLng getPosition()
Contains marker position. Required.
setPosition(com.teamdev.jxmaps.LatLng)
public void setPosition(LatLng value)
value
- new property valuegetPosition()
public Animation getAnimation()
Indicates which animation to play when marker is added to a map.
setAnimation(com.teamdev.jxmaps.Animation)
public void setAnimation(Animation value)
value
- new property valuegetAnimation()
public Attribution getAttribution()
Contains all the information needed to identify your application as the source of a save. In this context, 'place' means a business, point of interest or geographic location. attribution must be specified with a place in order to enable a save.
setAttribution(com.teamdev.jxmaps.Attribution)
public void setAttribution(Attribution value)
value
- new property valuegetAttribution()
public MarkerPlace getPlace()
Contains place information, used to identify and describe the place associated with this Marker. In this context, 'place' means a business, point of interest or geographic location. To allow a user to save this place, open an info window anchored on this marker. The info window will contain information about the place and an option for the user to save it. Only one of position or place can be specified.
setPlace(com.teamdev.jxmaps.MarkerPlace)
public void setPlace(MarkerPlace value)
value
- new property valuegetPlace()
public MarkerShape getShape()
Contains image map region definition used for drag/click.
setShape(com.teamdev.jxmaps.MarkerShape)
public void setShape(MarkerShape value)
value
- new property valuegetShape()
public Icon getIcon()
Contains icon for the foreground.
setIcon(com.teamdev.jxmaps.Icon)
public void setIcon(Icon value)
value
- new property valuegetIcon()
public java.lang.String getIconString()
Icon for the foreground. String representation.
setIconString(java.lang.String)
public void setIconString(java.lang.String value)
value
- new property valuegetIconString()
@Nullable public Symbol getIconSymbol()
Icon for the foreground. Symbol object.
setIconSymbol(com.teamdev.jxmaps.Symbol)
public void setIconSymbol(Symbol value)
value
- new property valuegetIconSymbol()
public MarkerLabel getLabel()
Adds a label to the marker.
setLabel(com.teamdev.jxmaps.MarkerLabel)
public void setLabel(MarkerLabel value)
value
- new property valuegetLabel()
public java.lang.String getLabelString()
Adds a string label to the marker.
setLabelString(java.lang.String)
public void setLabelString(java.lang.String value)
value
- new property valuegetLabelString()