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
- See Also:
-
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
-
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
-
fillOpacity
public double fillOpacity()Get the fill opacity- Returns:
- fill opacity
-
fillRule
-
clickTooltip
-
hoverTooltip
-
asBuilder
Create a newMarkerOptions.Builderfrom thisMarkerOptionsinstance- Returns:
- new builder
-
builder
Get a newMarkerOptions.Builder- Returns:
- new builder
-
equals
-
hashCode
-