public static class ControlLayersOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ControlLayersOptions.Builder |
autoZIndex(java.lang.Boolean autoZIndex)
If true, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.
|
ControlLayersOptions |
build()
Builds the ControlLayersOptions new instance
|
ControlLayersOptions.Builder |
collapsed(java.lang.Boolean collapsed)
If true, the control will be collapsed into an icon and expanded on mouse hover or touch.
|
ControlLayersOptions.Builder |
position(java.lang.String position)
The position of the control (one of the map corners).
|
public ControlLayersOptions.Builder position(java.lang.String position)
position
- the positionpublic ControlLayersOptions.Builder collapsed(java.lang.Boolean collapsed)
collapsed
- the collapsedpublic ControlLayersOptions.Builder autoZIndex(java.lang.Boolean autoZIndex)
autoZIndex
- the auto Z indexpublic ControlLayersOptions build()