new CenterPosition( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
extend the ol.control options. Properties
|
Extends
Methods
-
getCanvas()
-
Get canvas overlay
- Inherited From:
- Overrides:
-
getFill()
-
Get fill
- Inherited From:
- Overrides:
-
getStroke()
-
Get stroke
- Inherited From:
- Overrides:
-
getStyle()
-
Get style
- Inherited From:
- Overrides:
-
getTextFill()
-
Get text fill
- Inherited From:
- Overrides:
-
getTextFont()
-
Get text font
- Inherited From:
- Overrides:
-
getTextStroke()
-
Get stroke
- Inherited From:
- Overrides:
-
getVisible()
-
Get control visibility
Returns:
- Type
- bool
-
setCanvas(b)
-
Draw on canvas
Parameters:
Name Type Description b
boolean draw the attribution on canvas.
-
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.
- Inherited From:
- Overrides:
-
setStyle(style)
-
Change the control style
Parameters:
Name Type Description style
ol.style.Style - Overrides:
-
setVisible(b)
-
Set control visibility
Parameters:
Name Type Description b
bool