new Scale( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
Fires:
- event:select
- change:input
Extends
Methods
-
formatScale(d)
-
Format the scale 1/d
Parameters:
Name Type Description d
Number Returns:
formated string
- Type
- string
-
getScale()
-
Display the scale
-
setMap(map)
-
Remove the control from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.
Parameters:
Name Type Description map
ol.Map Map.
-
setScale(value)
-
Set the current scale (will change the scale of the map)
Parameters:
Name Type Description value
Number the scale factor