Interface IMarker
- All Superinterfaces:
IAnchor,ICefObjRef,IComponentMouseDragEventObject,IComponentMouseEventObject,IOptionedMapObject<provided.mixedData.MixedDataDictionary>,IVisibleMapObject
- All Known Subinterfaces:
IMarkerWrapped
public interface IMarker extends ICefObjRef, IVisibleMapObject, IComponentMouseEventObject, IComponentMouseDragEventObject, IAnchor, IOptionedMapObject<provided.mixedData.MixedDataDictionary>
Represents a marker placed on the map. Markers can be used as anchor points for info windows
- Author:
- swong
-
Method Summary
Modifier and Type Method Description booleangetClickable()Returns whether or not the marker is clickablejava.lang.StringgetCursor()Get the CSS cursor type shown when hovering over the markerbooleangetDraggable()Returns whether or not the marker is draggablejava.lang.StringgetIcon()Get the URL of the icon for the markerIMarkerLabelgetLabel()Get the label of the markerdoublegetOpacity()Get the opacity of the markerILatLnggetPosition()The LatLng position of this anchor point.java.lang.StringgetTitle()Get the title of the markerdoublegetZIndex()Gets the z-index of the marker on the mapvoidsetClickable(boolean isClickable)Sets whether or not the marker is clickablevoidsetCursor(java.lang.String cursor)Set the CSS cursor type shown when hovering over the markervoidsetDraggable(boolean isDraggable)Sets whether or not the marker is draggablevoidsetIcon(java.lang.String url)Set the URL string of the marker's iconvoidsetLabel(IMarkerLabel label)Set the label of the markervoidsetMarkerEvent(MarkerEventType eventType, java.lang.Runnable eventFn)Set an MarkerEventType event on the markervoidsetOpacity(double opacity)Set the opacity of the markervoidsetPosition(ILatLng latLng)Set the position of this markervoidsetTitle(java.lang.String title)Set the title of the marker.voidsetZIndex(double zIndex)Sets the z-index of the marker on the mapMethods inherited from interface provided.owlMaps.general.IAnchor
getPixelOffsetMethods inherited from interface provided.owlMaps.cefUtils.ICefObjRef
getCefIdMethods inherited from interface provided.owlMaps.mouse.IComponentMouseDragEventObject
setComponentMouseDragEventMethods inherited from interface provided.owlMaps.mouse.IComponentMouseEventObject
setComponentMouseEventMethods inherited from interface provided.owlMaps.general.IOptionedMapObject
setOptionsMethods inherited from interface provided.owlMaps.general.IVisibleMapObject
getVisible, setVisible
-
Method Details
-
getPosition
ILatLng getPosition()Description copied from interface:IAnchorThe LatLng position of this anchor point.- Specified by:
getPositionin interfaceIAnchor- Returns:
- The ILatLng of the anchor's location
-
setPosition
Set the position of this marker- Parameters:
latLng- The new position
-
getLabel
IMarkerLabel getLabel()Get the label of the marker- Returns:
- The label value
-
setLabel
Set the label of the marker- Parameters:
label- The new label for the marker
-
getTitle
java.lang.String getTitle()Get the title of the marker- Returns:
- The title of the marker
-
setTitle
void setTitle(java.lang.String title)Set the title of the marker. Note that this may appear to override the marker's label.- Parameters:
title- The new title of the marker
-
getClickable
boolean getClickable()Returns whether or not the marker is clickable- Returns:
- true if clickable, false otherwise
-
setClickable
void setClickable(boolean isClickable)Sets whether or not the marker is clickable- Parameters:
isClickable- true if clickable, false otherwise.
-
getDraggable
boolean getDraggable()Returns whether or not the marker is draggable- Returns:
- true if draggable, false otherwise
-
setDraggable
void setDraggable(boolean isDraggable)Sets whether or not the marker is draggable- Parameters:
isDraggable- true if draggable, false otherwise
-
getOpacity
double getOpacity()Get the opacity of the marker- Returns:
- The opacity value [0.0, 1.0]
-
setOpacity
void setOpacity(double opacity)Set the opacity of the marker- Parameters:
opacity- The new opacity value [0.0, 1.0]
-
getIcon
java.lang.String getIcon()Get the URL of the icon for the marker- Returns:
- The URL string of the icon
-
setIcon
void setIcon(java.lang.String url)Set the URL string of the marker's icon- Parameters:
url- A URL string
-
getCursor
java.lang.String getCursor()Get the CSS cursor type shown when hovering over the marker- Returns:
- The CSS cursor type for the marker
-
setCursor
void setCursor(java.lang.String cursor)Set the CSS cursor type shown when hovering over the marker- Parameters:
cursor- The CSS cursor type for the marker
-
getZIndex
double getZIndex()Gets the z-index of the marker on the map- Returns:
- the z-index
-
setZIndex
void setZIndex(double zIndex)Sets the z-index of the marker on the map- Parameters:
zIndex- The new z-index
-
setMarkerEvent
Set an MarkerEventType event on the marker- Parameters:
eventType- The event typeeventFn- The callback to use when the event occurs
-