new CanvasAttribution( [options])
Parameters:
| Name | Type | Argument | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
extend the ol.control.Attribution options. Properties
|
Extends
- ol.control.Attribution
Methods
-
setCanvas(b)
-
Draw attribution on canvas
Parameters:
Name Type Description bboolean 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 mapol.Map Map.
-
setStyle(style)
-
Change the control style
Parameters:
Name Type Description styleol.style.Style
ol-ext