-
public class MapInteractivity extends Interactivity
Interactivity class for maps. {docs:Maps/Move_and_Zoom#navigational_interactivity}Learn more about the map interactivity.{docs}
-
-
Constructor Summary
Constructors Constructor Description MapInteractivity(String jsChart)
-
Method Summary
Modifier and Type Method Description static MapInteractivityinstantiate()StringgetJsBase()MapInteractivityallowMultiSeriesSelection(Boolean value)voidcopyFormat()Getter for the copy formatter function. MapInteractivitycopyFormat(String formatFunction)Setter for the copy formatter function. voiddrag()Getter for the dragging value. MapInteractivitydrag(Boolean enabled)Allows to use drag for map. voidhoverMode()Getter for the hover mode. MapInteractivityhoverMode(HoverMode mode)Setter for the hover mode. MapInteractivityhoverMode(String mode)Setter for the hover mode. voidkeyboardZoomAndMove()Getter for the keyboard settings. MapInteractivitykeyboardZoomAndMove(Boolean enabled)Allows to use the keyboard to zoom and move. voidmouseWheel()MapInteractivitymouseWheel(Boolean value)voidmultiSelectOnClick()Getter for the multi-select on click. MapInteractivitymultiSelectOnClick(Boolean enabled)Setter for the multi-select on click. voidremoveAllListeners(String type)Removes all listeners from an object. voidselectionMode()Getter for the selection mode. MapInteractivityselectionMode(SelectionMode mode)Setter for the selection mode. MapInteractivityselectionMode(String mode)Setter for the selection mode. voidspotRadius()Getter for the spot radius. MapInteractivityspotRadius(Number radius)Setter for the spot radius. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voidunselectOnClickOutOfPoint()Getter for the unselectOnClickOutOfPoint. MapInteractivityunselectOnClickOutOfPoint(Boolean enabled)Setter for the unselectOnClickOutOfPoint. voidzoomOnDoubleClick()Getter for the double click settings. MapInteractivityzoomOnDoubleClick(Boolean enabled)Enables double click zoom. voidzoomOnMouseWheel()Getter for the mouse wheel settings. MapInteractivityzoomOnMouseWheel(Boolean enabled)Allows use the mouse wheel to zoom. -
Methods inherited from class com.anychart.core.utils.Interactivity
allowMultiSeriesSelection, hoverMode, hoverMode, instantiate, multiSelectOnClick, selectionMode, selectionMode, spotRadius, unselectOnClickOutOfPoint -
Methods inherited from class com.anychart.core.Base
instantiate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MapInteractivity
MapInteractivity(String jsChart)
-
-
Method Detail
-
instantiate
static MapInteractivity instantiate()
-
allowMultiSeriesSelection
MapInteractivity allowMultiSeriesSelection(Boolean value)
-
copyFormat
void copyFormat()
Getter for the copy formatter function.
-
copyFormat
MapInteractivity copyFormat(String formatFunction)
Setter for the copy formatter function. {docs:Common_Settings/Text_Formatters}Learn more about using copyFormat() method.{docs}
-
drag
void drag()
Getter for the dragging value.
-
drag
MapInteractivity drag(Boolean enabled)
Allows to use drag for map. Note: Works only with zoom
-
hoverMode
void hoverMode()
Getter for the hover mode.
-
hoverMode
MapInteractivity hoverMode(HoverMode mode)
Setter for the hover mode.
-
hoverMode
MapInteractivity hoverMode(String mode)
Setter for the hover mode.
-
keyboardZoomAndMove
void keyboardZoomAndMove()
Getter for the keyboard settings.
-
keyboardZoomAndMove
MapInteractivity keyboardZoomAndMove(Boolean enabled)
Allows to use the keyboard to zoom and move.
-
mouseWheel
void mouseWheel()
-
mouseWheel
MapInteractivity mouseWheel(Boolean value)
-
multiSelectOnClick
void multiSelectOnClick()
Getter for the multi-select on click.
-
multiSelectOnClick
MapInteractivity multiSelectOnClick(Boolean enabled)
Setter for the multi-select on click.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
selectionMode
void selectionMode()
Getter for the selection mode.
-
selectionMode
MapInteractivity selectionMode(SelectionMode mode)
Setter for the selection mode.
-
selectionMode
MapInteractivity selectionMode(String mode)
Setter for the selection mode.
-
spotRadius
void spotRadius()
Getter for the spot radius.
-
spotRadius
MapInteractivity spotRadius(Number radius)
Setter for the spot radius. Size of the area under cursor in pixels for radius hovering. Note: Works only with "by-spot" value in the hoverMode method.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
unselectOnClickOutOfPoint
void unselectOnClickOutOfPoint()
Getter for the unselectOnClickOutOfPoint.
-
unselectOnClickOutOfPoint
MapInteractivity unselectOnClickOutOfPoint(Boolean enabled)
Setter for the unselectOnClickOutOfPoint. If the value is true, disables select all points when clicking outside the chart point.
-
zoomOnDoubleClick
void zoomOnDoubleClick()
Getter for the double click settings.
-
zoomOnDoubleClick
MapInteractivity zoomOnDoubleClick(Boolean enabled)
Enables double click zoom.
-
zoomOnMouseWheel
void zoomOnMouseWheel()
Getter for the mouse wheel settings.
-
zoomOnMouseWheel
MapInteractivity zoomOnMouseWheel(Boolean enabled)
Allows use the mouse wheel to zoom.
-
-
-
-