import type { StyleLike } from 'ol/style/Style'; import React from 'react'; import type { Source } from '@opengeoweb/shared'; import type { Bbox, TileServerSettings } from '@opengeoweb/webmap'; export interface MapControlsProps { mapControlsPositionTop?: number; search?: boolean; zoomControls?: boolean; layerManagerAndLegend?: boolean; multiLegend?: boolean; dimensionSelect?: boolean; getFeatureInfo?: boolean; dataExplorerButton?: boolean; measureToolButton?: boolean; additionalMapControls?: React.ReactNode; } export interface OlMapViewConnectProps { mapId: string; children?: React.ReactNode; controls?: MapControlsProps; initialBbox?: Bbox; holdShiftToScroll?: boolean; displayTimeInMap?: boolean; showScaleBar?: boolean; shouldAutoFetch?: number | boolean; shouldDisablePrefetching?: boolean; tileServerSettings?: TileServerSettings; source?: Source; featureStyle?: StyleLike; } /** * Connected component used to display the map and selected layers. * Includes options to disable the map controls and legend. * * Expects the following props: * @param {string} mapId mapId: string - Id of the map * @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true */ declare const OlMapViewConnect: React.FC; export default OlMapViewConnect;