new CanvasScaleLine( [options])
Parameters:
Name | Type | Argument | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
extend the ol.control.ScaleLine options. Properties
|
Extends
- ol.control.ScaleLine
Methods
-
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.
-
setStyle(style)
-
Change the control style
Parameters:
Name Type Description style
_ol_style_Style_