new Target(options)
ol.control.Target draw a target at the center of the map.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
|
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