oscar.Control.PanZoomBar

@requires OpenLayers/Control/PanZoomBar.js

Summary
oscar.Control.PanZoomBar@requires OpenLayers/Control/PanZoomBar.js
Properties
slider
sliderEvents{<OpenLayers.Events>}
zoomBarDiv{DOMElement}
divEvents{<OpenLayers.Events>}
zoomWorldIcon{Boolean}
Functions
_addZoomBar
passEventToSliderThis function is used to pass events that happen on the div, or the map, through to the slider, which then does its moving thing.
divClickPicks up on clicks directly on the zoombar div and sets the zoom level appropriately.
zoomBarDownevent listener for clicks on the slider
zoomBarDragThis is what happens when a click has occurred, and the client is dragging.
zoomBarUpPerform cleanup when a mouseup event is received -- discover new zoom level and switch to it.
_addButton
doubleClick
buttonDown

Properties

slider

sliderEvents

{<OpenLayers.Events>}

zoomBarDiv

{DOMElement}

divEvents

{<OpenLayers.Events>}

zoomWorldIcon

{Boolean}

Functions

_addZoomBar

_addZoomBar:function(centered)

Parameters

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

passEventToSlider

passEventToSlider:function(evt)

This function is used to pass events that happen on the div, or the map, through to the slider, which then does its moving thing.

Parameters

evt{<OpenLayers.Event>}

divClick

divClick: function (evt)

Picks up on clicks directly on the zoombar div and sets the zoom level appropriately.

zoomBarDown

zoomBarDown:function(evt)

event listener for clicks on the slider

Parameters

evt{<OpenLayers.Event>}

zoomBarDrag

zoomBarDrag:function(evt)

This is what happens when a click has occurred, and the client is dragging.  Here we must ensure that the slider doesn’t go beyond the bottom/top of the zoombar div, as well as moving the slider to its new visual location

Parameters

evt{<OpenLayers.Event>}

zoomBarUp

zoomBarUp:function(evt)

Perform cleanup when a mouseup event is received -- discover new zoom level and switch to it.

Parameters

evt{<OpenLayers.Event>}

_addButton

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

Parameters

id{String}
img{String}
xy{<OpenLayers.Pixel>}
sz{<OpenLayers.Size>}

Returns

{DOMElement} A Div (an alphaImageDiv, to be precise) that contains the image of the button, and has all the proper event handlers set.

doubleClick

doubleClick: function (evt)

Parameters

evt{Event}

Returns

{Boolean}

buttonDown

buttonDown: function (evt)

Parameters

evt{Event}
_addZoomBar:function(centered)
passEventToSlider:function(evt)
This function is used to pass events that happen on the div, or the map, through to the slider, which then does its moving thing.
divClick: function (evt)
Picks up on clicks directly on the zoombar div and sets the zoom level appropriately.
zoomBarDown:function(evt)
event listener for clicks on the slider
zoomBarDrag:function(evt)
This is what happens when a click has occurred, and the client is dragging.
zoomBarUp:function(evt)
Perform cleanup when a mouseup event is received -- discover new zoom level and switch to it.
_addButton:function(id,
img,
xy,
sz)
doubleClick: function (evt)
buttonDown: function (evt)