Class MarkerOptions.Builder
java.lang.Object
xyz.jpenilla.squaremap.api.marker.MarkerOptions.Builder
- Enclosing class:
- MarkerOptions
Builder for
MarkerOptions-
Method Summary
Modifier and TypeMethodDescription@NonNull MarkerOptionsbuild()Create a new marker options instance from the current state of this builder@NonNull MarkerOptions.BuilderclickTooltip(@Nullable String tooltip) Set the click tooltip, accepts HTML@NonNull MarkerOptions.Builderfill(boolean fill) Set whether to fill the marker@NonNull MarkerOptions.BuilderSet the fill color@NonNull MarkerOptions.BuilderfillOpacity(double opacity) Set the fill opacity@NonNull MarkerOptions.BuilderfillRule(@NonNull MarkerOptions.FillRule fillRule) Set the fill rule@NonNull MarkerOptions.BuilderhoverTooltip(@Nullable String tooltip) Set the hover tooltip, accepts HTML@NonNull MarkerOptions.Builderstroke(boolean stroke) Set whether to render the line stroke@NonNull MarkerOptions.BuilderstrokeColor(@NonNull Color color) Set the line stroke color@NonNull MarkerOptions.BuilderstrokeOpacity(double opacity) Set the line stroke opacity@NonNull MarkerOptions.BuilderstrokeWeight(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
-