UNPKG

@igo2/geo

Version:
11 lines (10 loc) 488 B
import { VectorLayer } from '../../layer/shared/layers/vector-layer'; import type { FeatureStore } from './store'; /** * Try to bind a layer to a store if none is bound already. * The layer will also be added to the store's map. * If no layer is given to that function, a basic one will be created. * @param store The store to bind the layer * @param layer An optional VectorLayer */ export declare function tryBindStoreLayer(store: FeatureStore, layer?: VectorLayer): VectorLayer;