Class MarkerOptions
java.lang.Object
xyz.jpenilla.squaremap.api.marker.MarkerOptions
Class holding options for map markers
Note that not all options are applicable to all marker types
Many of these options mirror those found in the leaflet path options, see the link below for reference
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forMarkerOptionsstatic enumFill modes enum -
Method Summary
Modifier and TypeMethodDescriptionCreate a newMarkerOptions.Builderfrom thisMarkerOptionsinstancestatic @NonNull MarkerOptions.Builderbuilder()Get a newMarkerOptions.BuilderGet the click tooltipstatic @NonNull MarkerOptionsGet the default marker options instancebooleanbooleanfill()Get whether to fill the inside of the markerGet the fill colordoubleGet the fill opacityfillRule()Get the fill ruleinthashCode()Get the hover tooltipbooleanstroke()Get whether to render the line strokeGet the stroke colordoubleGet the line stroke opacityintGet the line stroke weight
-
Method Details
-
defaultOptions
Get the default marker options instance- Returns:
- default options
-
stroke
public boolean stroke()Get whether to render the line stroke- Returns:
- stroke
-
strokeColor
Get the stroke color- Returns:
- color
-
strokeWeight
public int strokeWeight()Get the line stroke weight- Returns:
- stroke weight
-
strokeOpacity
public double strokeOpacity()Get the line stroke opacity- Returns:
- stroke opacity
-
fill
public boolean fill()Get whether to fill the inside of the marker- Returns:
- fill
-
fillColor
Get the fill color- Returns:
- color
-
fillOpacity
public double fillOpacity()Get the fill opacity- Returns:
- fill opacity
-
fillRule
Get the fill rule- Returns:
- fill mode
-
clickTooltip
Get the click tooltipWill be
nullif not set- Returns:
- tooltip
-
hoverTooltip
Get the hover tooltipWill be
nullif not set- Returns:
- tooltip
-
asBuilder
Create a newMarkerOptions.Builderfrom thisMarkerOptionsinstance- Returns:
- new builder
-
builder
Get a newMarkerOptions.Builder- Returns:
- new builder
-
equals
-
hashCode
public int hashCode()
-