new Compass( [options])
Draw a compass on the map. The position/size of the control is defined in the css.
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Control options. The style {_ol_style_Stroke_} option is usesd to draw the text. Properties
|
Extends
Methods
-
setMap(map)
-
Remove the control from its current map and attach it to the new map.
Parameters:
Name Type Description map
_ol_Map_ Map.