Class: SwipeMap

ol.control. SwipeMap

Swipe Control.


new SwipeMap( [Control])

Parameters:
Name Type Argument Description
Control Object <optional>

options.

options.className string

control class name

options.position number

position property of the swipe [0,1], default 0.5

options.orientation string

orientation property (vertical|horizontal), default vertical

options.right boolean

true to position map on right side (resp. bottom for horizontal orientation), default false

Fires:
  • event:moving

Extends

Methods


getRectangle()

Get visible rectangle

Returns:
Type
ol.extent

setMap(map)

Set the map instance the control associated with.

Parameters:
Name Type Description
map ol.Map

The map instance.