Classes
Methods
(inner) layerSearchForLayer(layer, options) → {module:ol-ishare/search~LayerSearch}
Creates a LayerSearch instance for a given ol-ishare overlay layers (ol/layer/Image~ImageLayer
).
Reads iShare layerName
and searchField
(if present) from the layer's Profile config.
import { layerSearchForLayer } from 'ol-ishare/search';
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
layer |
ol/layer/Image~ImageLayer | overlay layer to create a LayerSearch instance for |
||||||||||||||||||
options |
Object | Options passed to LayerSearch constructor. Commonly only the Properties
|
Returns:
LayerSearch instance