public class Marker extends MapObject
Constructor and Description |
---|
Marker(Map map)
Creates new Marker object.
|
Modifier and Type | Method and Description |
---|---|
Animation |
getAnimation()
Returns value of animation property.
|
Attribution |
getAttribution()
Returns value of attribution property.
|
boolean |
getClickable()
Returns value of clickable property.
|
java.lang.String |
getCursor()
Returns value of cursor property.
|
boolean |
getDraggable()
Returns value of draggable property.
|
MarkerLabel |
getLabel()
Returns value of label property.
|
double |
getOpacity()
Returns value of opacity 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 |
remove()
Removes marker from the map.
|
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 |
setCursor(java.lang.String value)
Sets new value for cursor property.
|
void |
setDraggable(boolean value)
Returns value of draggable property.
|
void |
setIcon(Icon value)
Sets new value for icon property.
|
void |
setIcon(java.lang.String value)
Sets new value for icon property.
|
void |
setIcon(Symbol value)
Sets new value for icon property.
|
void |
setLabel(MarkerLabel value)
Sets new value for shape property.
|
void |
setOpacity(double value)
Sets new value for opacity property.
|
void |
setOptions(MarkerOptions options)
Sets new options for marker.
|
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 Marker(Map map)
map
- owner Map object@Nullable public Animation getAnimation()
Indicates which animation to play when marker is added to a map.
setAnimation(com.teamdev.jxmaps.Animation)
@Nullable 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 boolean getClickable()
If true, the marker receives mouse and touch events. Default value is true.
setClickable(boolean)
public java.lang.String getCursor()
Represents mouse cursor to show on hover
setCursor(java.lang.String)
public boolean getDraggable()
If true, the marker can be dragged. Default value is false.
setDraggable(boolean)
public MarkerLabel getLabel()
Adds a label to the marker.
public double getOpacity()
Contains the marker's opacity between 0.0 and 1.0.
setOpacity(double)
@Nullable 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)
@Nullable public LatLng getPosition()
Contains marker position. Required.
setPosition(com.teamdev.jxmaps.LatLng)
@Nullable public MarkerShape getShape()
Contains image map region definition used for drag/click.
setShape(com.teamdev.jxmaps.MarkerShape)
public java.lang.String getTitle()
Contains rollover text
setTitle(java.lang.String)
public boolean getVisible()
If true, the marker is visible
setVisible(boolean)
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 setAnimation(Animation value)
value
- new property valuegetAnimation()
public void setAttribution(Attribution value)
value
- new property valuegetAttribution()
public void setClickable(boolean value)
value
- new property valuegetClickable()
public void setCursor(java.lang.String value)
value
- new property valuegetCursor()
public void setDraggable(boolean value)
If true, the marker can be dragged. Default value is false.
value
- property valuesetDraggable(boolean)
public void setIcon(java.lang.String value)
value
- new property value as stringsetIcon(java.lang.String)
public void setIcon(Icon value)
value
- new property value as Icon objectsetIcon(java.lang.String)
public void setIcon(Symbol value)
value
- new property value as Symbol objectsetIcon(java.lang.String)
public void setOpacity(double value)
value
- new property valuegetOpacity()
public void setOptions(MarkerOptions options)
options
- new Options objectpublic void setPlace(MarkerPlace value)
value
- new property valuegetPlace()
public void setLabel(MarkerLabel value)
value
- new property valuegetLabel()
public void setShape(MarkerShape value)
value
- new property valuegetShape()
public void setPosition(LatLng value)
value
- new property valuegetPosition()
public void remove()
public void setTitle(java.lang.String value)
value
- new property valuesetTitle(java.lang.String)
public void setVisible(boolean value)
value
- new property valuegetVisible()
public void setZIndex(double value)
value
- new property valuegetZIndex()