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 TypeMethodDescription@NonNull MarkerOptions.BuilderCreate a newMarkerOptions.Builderfrom thisMarkerOptionsinstancestatic @NonNull MarkerOptions.Builderbuilder()Get a newMarkerOptions.Builder@Nullable StringGet the click tooltipstatic @NonNull MarkerOptionsGet the default marker options instancebooleanbooleanfill()Get whether to fill the inside of the marker@Nullable ColorGet the fill colordoubleGet the fill opacity@NonNull MarkerOptions.FillRulefillRule()Get the fill ruleinthashCode()@Nullable StringGet the hover tooltipbooleanstroke()Get whether to render the line stroke@NonNull ColorGet 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()
-