OpenLayers. Control. PinchZoom

Inherits

Summary
OpenLayers. Control. PinchZoom
Properties
autoActivate {Boolean} Activate the control when it is added to a map.
preserveCenter {Boolean} Set this to true if you don’t want the map center to change while pinching.
handlerOptions {Object} Used to set non-default properties on the pinch handler
Constructor
OpenLayers. Control. PinchZoom Create a control for zooming with pinch gestures.

Properties

autoActivate

{Boolean} Activate the control when it is added to a map.  Default is true.

preserveCenter

{Boolean} Set this to true if you don’t want the map center to change while pinching.  For example you may want to set preserveCenter to true when the user location is being watched and you want to preserve the user location at the center of the map even if he zooms in or out using pinch.  This property’s value can be changed any time on an existing instance.  Default is false.

handlerOptions

{Object} Used to set non-default properties on the pinch handler

Constructor

OpenLayers. Control. PinchZoom

Create a control for zooming with pinch gestures.  This works on devices with multi-touch support.

Parameters

options {Object} An optional object whose properties will be set on the control
Controls affect the display or behavior of the map.
Close