java.lang.Object
com.dlsc.gmapsfx.javascript.JavascriptObject
com.dlsc.gmapsfx.javascript.object.Marker
public class Marker extends JavascriptObject
Marker which can be placed on a GoogleMap.
- Author:
- Rob Terpilowski
-
Field Summary
Fields inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
jsObject, objectCounter, peerRegistry, runtime, variableName -
Constructor Summary
Constructors Constructor Description Marker(MarkerOptions markerOptions)Contructs a new map Marker with the specified options -
Method Summary
Modifier and Type Method Description StringgetTitle()booleangetVisible()voidsetAnimation(Animation animation)Sets how the marker should be animated.protected voidsetMap(GoogleMap map)This method is called from the GoogleMap.addMarker() method, it should not be invoked directly.voidsetOptions(MarkerOptions markerOptions2)voidsetPosition(LatLong latLong)voidsetTitle(String title)Sets the title of this MarkervoidsetVisible(boolean visible)Methods inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
checkBoolean, checkInteger, checkUndefined, getJSObject, getNextVariableName, getProperty, getProperty, getVariableName, invokeJavascript, invokeJavascript, invokeJavascriptReturnValue, invokeJavascriptReturnValue, isMemberDefined, setProperty, setProperty, setProperty
-
Constructor Details
-
Marker
Contructs a new map Marker with the specified options- Parameters:
markerOptions- The options to use when constructing this marker.
-
-
Method Details
-
getTitle
-
setTitle
Sets the title of this Marker- Parameters:
title- The Marker's new title
-
setMap
This method is called from the GoogleMap.addMarker() method, it should not be invoked directly.- Parameters:
map- The map to add this Marker to.
-
setAnimation
Sets how the marker should be animated. To clear the animation use Animation.NULL- Parameters:
animation- The animation to use for this marker.
-
setPosition
-
setOptions
-
setVisible
public void setVisible(boolean visible) -
getVisible
public boolean getVisible()
-