Class MarkerOptions.Builder
java.lang.Object
xyz.jpenilla.squaremap.api.marker.MarkerOptions.Builder
- Enclosing class:
- MarkerOptions
Builder for
MarkerOptions-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new marker options instance from the current state of this builderclickTooltip(@Nullable String tooltip) Set the click tooltip, accepts HTMLfill(boolean fill) Set whether to fill the markerSet the fill colorfillOpacity(double opacity) Set the fill opacityfillRule(@NonNull MarkerOptions.FillRule fillRule) Set the fill rulehoverTooltip(@Nullable String tooltip) Set the hover tooltip, accepts HTMLstroke(boolean stroke) Set whether to render the line strokestrokeColor(@NonNull Color color) Set the line stroke colorstrokeOpacity(double opacity) Set the line stroke opacitystrokeWeight(int weight) Set the line stroke weight
-
Method Details
-
stroke
Set whether to render the line strokeDefault:
true- Parameters:
stroke- new stroke- Returns:
- this builder
-
strokeColor
Set the line stroke colorDefault:
Color.BLUE- Parameters:
color- new color- Returns:
- this builder
-
strokeWeight
Set the line stroke weightDefault:
3- Parameters:
weight- new weight- Returns:
- this builder
-
strokeOpacity
Set the line stroke opacityDefault:
1.0- Parameters:
opacity- new opacity- Returns:
- this builder
-
fill
Set whether to fill the markerDefault:
true- Parameters:
fill- new fill- Returns:
- this builder
-
fillColor
Set the fill colorDefault: unset
- Parameters:
color- new color- Returns:
- this builder
-
fillOpacity
Set the fill opacityDefault:
0.2- Parameters:
opacity- new opacity- Returns:
- this builder
-
fillRule
Set the fill ruleDefault:
MarkerOptions.FillRule.EVENODD- Parameters:
fillRule- new fill rule- Returns:
- this builder
-
clickTooltip
Set the click tooltip, accepts HTMLDefault: unset
- Parameters:
tooltip- new tooltip- Returns:
- this builder
-
hoverTooltip
Set the hover tooltip, accepts HTMLDefault: unset
- Parameters:
tooltip- new tooltip- Returns:
- this builder
-
build
Create a new marker options instance from the current state of this builder- Returns:
- new marker options
-