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.
| EMS. | Displays 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. | |
| Functions | |
| destroy | |
| draw |
{Array} of all the EMS.Zoom values we want to show. These are key values.
{Mixed} is either OpenLayers.Pixel or a EMS.Position. Defaults to the top left corner.
draw: function( px )
| px | {Mixed} is either OpenLayers.Pixel or a EMS.Position. |
{DOMElement} the main element where the zoombar is drawn in.
destroy: function()
draw: function( px )