Class: Target

ol.control. Target

ol.control.Target draw a target at the center of the map.


new Target(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
style ol.style.Style | Array.<ol.style.Style>
composite string

composite operation = difference|multiply|xor|screen|overlay|darken|lighter|lighten|...

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 the control visibility

Returns:

b

Type
boolean

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()

Set Style

Overrides:

setVisible()

Set the control visibility