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
  • style {ol.style.Style|Array<ol.style.Style>} ol.style.Stroke: draw a cross on the map, ol.style.Image: draw the image on the map
    • composite {string} composite operation : difference|multiply|xor|screen|overlay|darken|lighter|lighten|...

Methods


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.


setVisible()

Set the control visibility