EMS.Control.ZoomBar

Displays a zoombar.  Unless explicitly specified with the fullsize flag as either true or false, the zoombar will adjust it’s size to either just zoom buttons or a full scale plus buttons.  This will adjust on map resize.

Inherits from

Summary
EMS.Control.ZoomBarDisplays a zoombar.
Constants
SLIDER_SIZE{OpenLayers.Size} is the size of the slider.
SCALE_SIZE{OpenLayers.Size} is the size of the scale.
HANDLE_SIZE{OpenLayers.Size} the size of the slider handle.
LABEL_SIZE{OpenLayers.Size} the size of a label.
BUTTON_SIZE{OpenLayers.Size} the size of the zoom in and out buttons.
LABELS{Array} of all the EMS.Zoom values we want to show.
FULLSIZE_OFFSET{Integer} is the amount (horizontally) the bar will change when be pushed right when rendering the fullsized version.
Properties
position{Mixed} is either OpenLayers.Pixel or a EMS.Position.
offset{OpenLayers.Pixel} the offset from the edge of the map.
fullsize{Boolean} is the flag indicating whether to draw the fullsized zoombar.
Constructor
EMS.Control.ZoomBar
Functions
destroy
draw

Constants

SLIDER_SIZE

{OpenLayers.Size} is the size of the slider.

SCALE_SIZE

{OpenLayers.Size} is the size of the scale.

HANDLE_SIZE

{OpenLayers.Size} the size of the slider handle.

LABEL_SIZE

{OpenLayers.Size} the size of a label.

BUTTON_SIZE

{OpenLayers.Size} the size of the zoom in and out buttons.

LABELS

{Array} of all the EMS.Zoom values we want to show.  These are key values.

FULLSIZE_OFFSET

{Integer} is the amount (horizontally) the bar will change when be pushed right when rendering the fullsized version.

Properties

position

{Mixed} is either OpenLayers.Pixel or a EMS.Position.  Defaults to the top left corner.

offset

{OpenLayers.Pixel} the offset from the edge of the map.

fullsize

{Boolean} is the flag indicating whether to draw the fullsized zoombar.

Constructor

EMS.Control.ZoomBar

Parameters

options{Object} is the optional object of options.

Functions

destroy

destroy: function()

draw

draw: function(px)
px{Mixed} is either OpenLayers.Pixel or a EMS.Position.

Returns

{DOMElement} the main element where the zoombar is drawn in.

This class represents a screen coordinate, in x and y coordinates
Enumeration of possible positions relative to the map.
destroy: function()
draw: function(px)
Extention to the OpenLayers.Control that translates relative positions from EMS.Position.
Close