Package xyz.jpenilla.squaremap.api
Class SimpleLayerProvider.Builder
java.lang.Object
xyz.jpenilla.squaremap.api.SimpleLayerProvider.Builder
- Enclosing class:
- SimpleLayerProvider
Builder for
SimpleLayerProvider-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aSimpleLayerProviderinstance from the current state of this builderdefaultHidden(boolean defaultHidden) Set whether this layer is hidden by defaultlayerPriority(int layerPriority) Set the priority for this layershowControls(boolean showControls) Set whether to show controls for this layerzIndex(int zIndex) Set the z-index for this layer
-
Method Details
-
defaultHidden
Set whether this layer is hidden by defaultDefault:
false- Parameters:
defaultHidden- whether to be default hidden- Returns:
- this builder
- See Also:
-
showControls
Set whether to show controls for this layerDefault:
true- Parameters:
showControls- whether to show controls- Returns:
- this builder
- See Also:
-
layerPriority
Set the priority for this layerDefault:
99- Parameters:
layerPriority- layer priority- Returns:
- this builder
- See Also:
-
zIndex
Set the z-index for this layerDefault:
99- Parameters:
zIndex- new z-index- Returns:
- this builder
- See Also:
-
build
Build aSimpleLayerProviderinstance from the current state of this builder- Returns:
- the built instance
-