Class: CanvasAttribution

ol.control. CanvasAttribution

OpenLayers 3 Attribution Control integrated in the canvas (for jpeg/png


new CanvasAttribution( [options])

Parameters:
Name Type Argument Description
options Object <optional>

extend the ol.control.Attribution options.

Properties
Name Type Description
style ol.style.Style

option is usesd to draw the text.

See:

Extends

  • ol.control.Attribution

Methods


setCanvas(b)

Draw attribution 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.


setStyle(style)

Change the control style

Parameters:
Name Type Description
style ol.style.Style