Class: Target

ol.control. Target


new Target(options)

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

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:

getFill()

Get fill

Inherited From:

getStroke()

Get stroke

Inherited From:

getStyle()

Get style

Inherited From:

getTextFill()

Get text fill

Inherited From:

getTextFont()

Get text font

Inherited From:

getTextStroke()

Get stroke

Inherited From:

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 o.Map

Map.

Inherited From:

setStyle()

Set Style

Inherited From:

setVisible()

Set the control visibility