The PanZoom is a visible control, composed of a OpenLayers.Control.PanPanel and a OpenLayers.Control.ZoomPanel. By default it is drawn in the upper left corner of the map.
OpenLayers. | The PanZoom is a visible control, composed of a OpenLayers.Control.PanPanel and a OpenLayers.Control.ZoomPanel. |
Properties | |
slideFactor | {Integer} Number of pixels by which we’ll pan the map in any direction on clicking the arrow buttons. |
slideRatio | {Number} The fraction of map width/height by which we’ll pan the map on clicking the arrow buttons. |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
Constants | |
X | {Integer} |
Y | {Integer} |
{Integer} Number of pixels by which we’ll pan the map in any direction on clicking the arrow buttons. If you want to pan by some ratio of the map dimensions, use slideRatio instead.
{Number} The fraction of map width/height by which we’ll pan the map on clicking the arrow buttons. Default is null. If set, will override slideFactor. E.g. if slideRatio is .5, then the Pan Up button will pan up half the map height.
destroy: function()