OpenSpace.Control.LargeMapControl

A handler for pan and zoom events.

Example

The following example shows how to add the large map control to the map:

var osMap = new OpenSpace.Map('map', { controls: [] });

osMap.addControl(new OpenSpace.Control.LargeMapControl());

Inherits from

  • <OpenLayers.Control.PanZoomBar> THIS HAS BEEN UPDATED FOR OPENLAYERS 2.12
Summary
OpenSpace.Control.LargeMapControlA handler for pan and zoom events.
Properties
drawZoomBar{boolean} drawZoomBar.
Functions
draw
_addZoomBar
_addButtonthis is an override for OpenLayers.Control.PanZoomBar.__addButton function

Properties

drawZoomBar

{boolean} drawZoomBar.

Functions

draw

draw: function (px)

Parameters

px{<OpenLayers.Pixel>}

_addZoomBar

_addZoomBar:function(centered)

Parameters

centered{<OpenLayers.Pixel>} where zoombar drawing is to start.

This is the OpenLayers 2.12 method with changes marked

_addButton

_addButton: function (id,
img,
xy,
sz)

this is an override for OpenLayers.Control.PanZoomBar.__addButton function

Returns

Button {Object}

draw: function (px)
_addZoomBar:function(centered)
_addButton: function (id,
img,
xy,
sz)
this is an override for OpenLayers.Control.PanZoomBar.__addButton function
Close