Package com.geodesk.util
Class Marker
java.lang.Object
com.geodesk.util.Marker
A marker on a Leaflet-based interactive map.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Bounds
bounds()
Specifies the color of this Marker.boolean
Speficies a single option for this Marker.Specifies options for this Marker.Sets the content to be displayed whenever the cursor is hovered over this Marker.Sets the URL which is navigated when the user clicks on this Marker.void
write
(Appendable out) protected void
writeCoordinates
(Appendable out, CoordinateSequence coords) protected void
writePoint
(Appendable out, double x, double y) protected abstract void
writeStub
(Appendable out)
-
Field Details
-
options
-
map
-
-
Constructor Details
-
Marker
public Marker()
-
-
Method Details
-
tooltip
Sets the content to be displayed whenever the cursor is hovered over this Marker.- Parameters:
tooltip
- HTML-formatted content- Returns:
- this Marker
-
url
Sets the URL which is navigated when the user clicks on this Marker.- Parameters:
url
- a URL- Returns:
- this Marker
-
options
Specifies options for this Marker. See the Leaflet documentation for a list of available options.- Parameters:
moreOptions
- a key-value map- Returns:
- this Marker
-
option
Speficies a single option for this Marker. See the Leaflet documentation for a list of available options.- Parameters:
key
- the name of the option (e.g. `opacity` or `lineCap`)value
- the value of the option- Returns:
-
color
Specifies the color of this Marker.- Parameters:
color
- a named color or RGB spec (e.g.#3388ff
)- Returns:
- this Marker
-
defaultTooltip
-
isVisible
public boolean isVisible() -
writePoint
- Throws:
IOException
-
writeCoordinates
- Throws:
IOException
-
bounds
-
writeStub
- Throws:
IOException
-
write
- Throws:
IOException
-