Class: CanvasTitle

ol.control. CanvasTitle


new CanvasTitle( [options])

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

Parameters:
Name Type Argument Description
options Object <optional>

extend the ol.control options.

Properties
Name Type Description
style ol.style.Style

style usesd to draw the title.

Extends

Methods


drawTitle_()

Draw scale line in the final canvas


getTitle(map)

Get the map title

Parameters:
Name Type Description
map string

title.


getVisible()

Get control visibility

Returns:
Type
bool

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

setTitle(map)

Set the map title

Parameters:
Name Type Description
map string

title.


setVisible(b)

Set control visibility

Parameters:
Name Type Description
b bool