new Imageline( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Control options. Properties
|
Fires:
- event:select
- event:collapse
Extends
Methods
-
collapse(b)
-
Collapse the line
Parameters:
Name Type Description b
boolean -
getFeatures()
-
Get features
Returns:
- Type
- Array.<ol.Feature>
-
isCollapsed()
-
Is the line collapsed
Returns:
- Type
- boolean
-
refresh()
-
Refresh the imageline with new data
-
select(feature, scroll)
-
Center image line on a feature
Parameters:
Name Type Description feature
ol.feature scroll
boolean scroll the line to center on the image, default true
-
setLayers(layers)
-
Set layers to use in the control
Parameters:
Name Type Description layers
Array.<ol.Layer> -
setMap(map)
-
Remove the control from its current map and attach it to the new map.
Parameters:
Name Type Description map
ol.Map Map.
-
toggle()
-
Collapse the line
-
useExtent(b)
-
Set useExtent param and refresh the line
Parameters:
Name Type Description b
boolean