Constructor
# new Swipe(opts)
Constructor options
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
object
|
Control options |
|
layers |
BaseLayer
|
<optional> |
layer to swipe |
rightLayer |
ol.layer
|
<optional> |
layer to swipe on right side |
className |
string
|
<optional> |
control class name |
position |
number
|
<optional> |
position propertie of the swipe [0,1], default 0.5 |
orientation |
string
|
<optional> |
orientation properties (vertical|horizontal), default vertical |
- Tutorials: