HSLayers.Control.ScaleSwitcher (class)

HSLayers.Control.ScaleSwitcher

class HSLayers.Control.ScaleSwitcher()

Switches projection on for the map

Properties

HSLayers.Control.ScaleSwitcher.scales
Type :String[] (static)

HSLayers.Control.ScaleSwitcher

Scales defined by the application

HSLayers.Control.ScaleSwitcher.switcher
Type :DOMObject (static)

HSLayers.Control.ScaleSwitcher

the select object

Methods

on the page. If a div has not been created one is created. Controls with a visual component will almost always want to override this method to customize the look of control.

HSLayers.Control.ScaleSwitcher.draw(px)
The draw method is called when the control is ready to be displayed

on the page. If a div has not been created one is created. Controls with a visual component will almost always want to override this method to customize the look of control.

:param <a href=”http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Pixel-js.html“>OpenLayers.Pixel</a> px:

The top-left pixel position of the control or null.
returns:A reference to the DIV DOMElement containing the control
rtype:DOMElement

Main Menu


Table Of Contents

Previous topic

HSLayers.Control.ReadState (class)

Next topic

HSLayers.Control.SelectFeature (class)

This Page