new Swipe( [Control])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
Control |
Object |
<optional> |
opt_options. |
Extends
Methods
-
addLayer(layer, add)
-
Add a layer to clip
Parameters:
Name Type Description layerol.layer | Array.<ol.layer> to clip
addbool layer in the right part of the map, default left.
-
removeLayer(layer)
-
Remove a layer to clip
Parameters:
Name Type Description layerol.layer | Array.<ol.layer> to clip
-
setMap(map)
-
Set the map instance the control associated with.
Parameters:
Name Type Description map_ol_Map_ The map instance.
ol-ext