@mapcomponents/react-maplibre 1.3.2 → 1.5.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +169 -38
- package/CODE_OF_CONDUCT.md +70 -70
- package/CONTRIBUTING.md +157 -149
- package/README.md +1 -1
- package/docs_md/anatomy_of_a_mapcomponent.md +34 -37
- package/eslint.config.cjs +3 -0
- package/package.json +193 -231
- package/project.json +21 -0
- package/tsconfig.lib.json +29 -0
- package/vite.config.ts +61 -0
- package/.eslintrc.cjs +0 -33
- package/dist/assets/index.cjs-Iqz0mZaU.css +0 -98
- package/dist/assets/index.esm-Iqz0mZaU.css +0 -98
- package/dist/index.cjs.js +0 -22057
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -21937
- package/dist/index.esm.js.map +0 -1
- package/dist/src/components/MapLibreMap/MapLibreMap.d.ts +0 -34
- package/dist/src/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +0 -120
- package/dist/src/components/MlCenterPosition/MlCenterPosition.d.ts +0 -36
- package/dist/src/components/MlClientSearch/MlClientSearch.d.ts +0 -30
- package/dist/src/components/MlClientSearch/lib/SearchContext.d.ts +0 -13
- package/dist/src/components/MlClientSearch/lib/SearchForm.d.ts +0 -2
- package/dist/src/components/MlClientSearch/lib/createGeojsonFeature.d.ts +0 -4
- package/dist/src/components/MlComponentTemplate/MlComponentTemplate.d.ts +0 -18
- package/dist/src/components/MlComponentTemplate/MlComponentTemplate.stories_.d.ts +0 -14
- package/dist/src/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +0 -22
- package/dist/src/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +0 -13
- package/dist/src/components/MlCreatePdfForm/lib/PdfContext.d.ts +0 -8
- package/dist/src/components/MlCreatePdfForm/lib/PdfForm.d.ts +0 -25
- package/dist/src/components/MlCreatePdfForm/lib/PdfPreview.d.ts +0 -26
- package/dist/src/components/MlCreatePdfForm/lib/pdf.templates.d.ts +0 -11
- package/dist/src/components/MlCreatePngButton/MlCreatePngButton.d.ts +0 -22
- package/dist/src/components/MlFeatureEditor/MlFeatureEditor.d.ts +0 -5
- package/dist/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +0 -62
- package/dist/src/components/MlFollowGps/MlFollowGps.d.ts +0 -81
- package/dist/src/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +0 -98
- package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +0 -9
- package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +0 -9
- package/dist/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +0 -4
- package/dist/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +0 -5
- package/dist/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +0 -23
- package/dist/src/components/MlGpxViewer/MlGpxViewer.d.ts +0 -31
- package/dist/src/components/MlGpxViewer/util/GeoJsonContext.d.ts +0 -10
- package/dist/src/components/MlGpxViewer/util/GeoJsonProvider.d.ts +0 -5
- package/dist/src/components/MlGpxViewer/util/Metadata.d.ts +0 -7
- package/dist/src/components/MlGpxViewer/util/MlGpxDemoLoader.d.ts +0 -11
- package/dist/src/components/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +0 -4
- package/dist/src/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +0 -39
- package/dist/src/components/MlLayer/MlLayer.d.ts +0 -33
- package/dist/src/components/MlLayerMagnify/MlLayerMagnify.d.ts +0 -33
- package/dist/src/components/MlLayerSwipe/MlLayerSwipe.d.ts +0 -26
- package/dist/src/components/MlLayerSwipe/assets/SwipeIcon.d.ts +0 -10
- package/dist/src/components/MlLayerSwitcher/MlLayerSwitcher.d.ts +0 -29
- package/dist/src/components/MlLayerSwitcher/components/LayerBox.d.ts +0 -10
- package/dist/src/components/MlMarker/MlMarker.d.ts +0 -29
- package/dist/src/components/MlMeasureTool/MlMeasureTool.d.ts +0 -37
- package/dist/src/components/MlMultiMeasureTool/MlMultiMeasureTool.d.ts +0 -55
- package/dist/src/components/MlNavigationCompass/MlNavigationCompass.d.ts +0 -33
- package/dist/src/components/MlNavigationCompass/assets/CompassBackground.d.ts +0 -9
- package/dist/src/components/MlNavigationCompass/assets/CompassNeedle.d.ts +0 -9
- package/dist/src/components/MlNavigationTools/MlNavigationTools.d.ts +0 -55
- package/dist/src/components/MlOgcApiFeatures/MlOgcApiFeatures.d.ts +0 -45
- package/dist/src/components/MlOrderLayers/MlOrderLayers.d.ts +0 -21
- package/dist/src/components/MlScaleReference/MlScaleReference.d.ts +0 -9
- package/dist/src/components/MlShareMapState/MlShareMapState.d.ts +0 -35
- package/dist/src/components/MlSketchTool/MlSketchTool.d.ts +0 -50
- package/dist/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +0 -40
- package/dist/src/components/MlSpatialElevationProfile/util/getElevationData.d.ts +0 -13
- package/dist/src/components/MlTemporalController/MlTemporalController.d.ts +0 -181
- package/dist/src/components/MlTemporalController/utils/MlTemporalControllerLabels.d.ts +0 -20
- package/dist/src/components/MlTemporalController/utils/TemporalControllerPlayer.d.ts +0 -22
- package/dist/src/components/MlTemporalController/utils/paintPicker.d.ts +0 -59
- package/dist/src/components/MlTemporalController/utils/useFilterData.d.ts +0 -14
- package/dist/src/components/MlTerrainLayer/MlTerrainLayer.d.ts +0 -28
- package/dist/src/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +0 -13
- package/dist/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +0 -12
- package/dist/src/components/MlUseMapDebugger/MlUseMapDebugger.d.ts +0 -21
- package/dist/src/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +0 -22
- package/dist/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +0 -22
- package/dist/src/components/MlWmsLayer/MlWmsLayer.d.ts +0 -58
- package/dist/src/components/MlWmsLoader/MlWmsLoader.d.ts +0 -125
- package/dist/src/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +0 -4
- package/dist/src/components/MlWmsLoader/utils/WMSLinks.d.ts +0 -8
- package/dist/src/contexts/LayerContext.d.ts +0 -59
- package/dist/src/contexts/MapContext.d.ts +0 -26
- package/dist/src/contexts/SimpleDataContext.d.ts +0 -4
- package/dist/src/contexts/SimpleDataProvider.d.ts +0 -12
- package/dist/src/decorators/EmptyMapDecorator.d.ts +0 -4
- package/dist/src/decorators/GeoJsonMapDecorator.d.ts +0 -4
- package/dist/src/decorators/LowZoomDecorator.d.ts +0 -4
- package/dist/src/decorators/MapContextDecorator.d.ts +0 -7
- package/dist/src/decorators/MapContextDecoratorHooks.d.ts +0 -4
- package/dist/src/decorators/MapContextReduxStoreDecorator.d.ts +0 -7
- package/dist/src/decorators/MultiMapContextDecorator.d.ts +0 -4
- package/dist/src/decorators/NoNavToolsDecorator.d.ts +0 -4
- package/dist/src/decorators/ThemeDecorator.d.ts +0 -5
- package/dist/src/hooks/useAddImage/useAddImage.d.ts +0 -20
- package/dist/src/hooks/useAddProtocol/useAddProtocol.d.ts +0 -23
- package/dist/src/hooks/useCameraFollowPath/useCameraFollowPath.d.ts +0 -35
- package/dist/src/hooks/useExportMap/index.d.ts +0 -11
- package/dist/src/hooks/useExportMap/lib.d.ts +0 -52
- package/dist/src/hooks/useFeatureEditor/useFeatureEditor.d.ts +0 -46
- package/dist/src/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +0 -116
- package/dist/src/hooks/useFitLayerBounds.d.ts +0 -8
- package/dist/src/hooks/useGpx/useGpx.d.ts +0 -26
- package/dist/src/hooks/useLayer.d.ts +0 -36
- package/dist/src/hooks/useLayerContext.d.ts +0 -2
- package/dist/src/hooks/useLayerFilter/useLayerFilter.d.ts +0 -8
- package/dist/src/hooks/useLayerHoverPopup/LayerHoverPopup.d.ts +0 -24
- package/dist/src/hooks/useMap.d.ts +0 -14
- package/dist/src/hooks/useMapState.d.ts +0 -37
- package/dist/src/hooks/useSource.d.ts +0 -17
- package/dist/src/hooks/useWms.d.ts +0 -26
- package/dist/src/index.d.ts +0 -126
- package/dist/src/omt_styles/bright.d.ts +0 -2495
- package/dist/src/omt_styles/config.d.ts +0 -7
- package/dist/src/omt_styles/gruvbox.d.ts +0 -2420
- package/dist/src/omt_styles/medieval_kingdom.d.ts +0 -2420
- package/dist/src/omt_styles/monokai.d.ts +0 -2420
- package/dist/src/omt_styles/oceanic_next.d.ts +0 -2420
- package/dist/src/omt_styles/solarized.d.ts +0 -2420
- package/dist/src/protocol_handlers/csv.d.ts +0 -8
- package/dist/src/protocol_handlers/mbtiles.d.ts +0 -74
- package/dist/src/protocol_handlers/osm.d.ts +0 -10
- package/dist/src/protocol_handlers/topojson.d.ts +0 -9
- package/dist/src/protocol_handlers/utils/getProtocolData.d.ts +0 -1
- package/dist/src/protocol_handlers/utils/protocolPathParser.d.ts +0 -7
- package/dist/src/protocol_handlers/xml.d.ts +0 -10
- package/dist/src/stores/map.store.d.ts +0 -105
- package/dist/src/ui_components/AddLayerButton/AddLayerButton.d.ts +0 -17
- package/dist/src/ui_components/AddLayerButton/AddLayerPopup.d.ts +0 -15
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/GeoJsonLayerForm.d.ts +0 -8
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/LayerTypeForm.d.ts +0 -10
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/MbtilesLayerForm.d.ts +0 -13
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/ProtocolHandlerLayerForm.d.ts +0 -10
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/WmsLayerForm.d.ts +0 -10
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/CSVOptionsFomular.d.ts +0 -6
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts +0 -7
- package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/OsmOptionsFomular.d.ts +0 -6
- package/dist/src/ui_components/ColorPicker/ColorPicker.d.ts +0 -15
- package/dist/src/ui_components/ColorPicker/transformers.d.ts +0 -10
- package/dist/src/ui_components/ConfirmDialog.d.ts +0 -16
- package/dist/src/ui_components/DemoDescriptions.d.ts +0 -12
- package/dist/src/ui_components/Dropzone.d.ts +0 -6
- package/dist/src/ui_components/ImageLoader.d.ts +0 -10
- package/dist/src/ui_components/LayerList/LayerList.d.ts +0 -7
- package/dist/src/ui_components/LayerList/LayerListFolder.d.ts +0 -9
- package/dist/src/ui_components/LayerList/LayerListItem.d.ts +0 -26
- package/dist/src/ui_components/LayerList/LayerListItemFactory.d.ts +0 -18
- package/dist/src/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +0 -19
- package/dist/src/ui_components/LayerList/util/LayerPropertyForm.d.ts +0 -10
- package/dist/src/ui_components/LayerList/util/SortableContainer.d.ts +0 -7
- package/dist/src/ui_components/LayerList/util/input/ColorPicker.d.ts +0 -10
- package/dist/src/ui_components/LayerTree/LayerOnMap.d.ts +0 -7
- package/dist/src/ui_components/LayerTree/LayerTree.d.ts +0 -6
- package/dist/src/ui_components/LayerTree/LayerTreeListItem.d.ts +0 -18
- package/dist/src/ui_components/LayerTree/util/LayerPropertyForm.d.ts +0 -9
- package/dist/src/ui_components/LayerTree/util/input/ColorPicker.d.ts +0 -7
- package/dist/src/ui_components/LoadingOverlayContext.d.ts +0 -4
- package/dist/src/ui_components/MapcomponentsTheme.d.ts +0 -35
- package/dist/src/ui_components/SelectStyleButton/SelectStyleButton.d.ts +0 -20
- package/dist/src/ui_components/SelectStyleButton/SelectStylePopup.d.ts +0 -18
- package/dist/src/ui_components/Sidebar.d.ts +0 -13
- package/dist/src/ui_components/SpeedDial/SpeedDial.d.ts +0 -14
- package/dist/src/ui_components/TopToolbar.d.ts +0 -9
- package/dist/src/ui_components/UploadButton.d.ts +0 -8
- package/dist/src/util/BubbleForInstructions.d.ts +0 -16
- package/dist/src/util/Instructions.d.ts +0 -14
- package/eslint.config.mjs +0 -73
- package/rollup.config.mjs +0 -62
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MapState {
|
|
3
|
-
lat?: number;
|
|
4
|
-
lng?: number;
|
|
5
|
-
zoom?: number;
|
|
6
|
-
bearing?: number;
|
|
7
|
-
pitch?: number;
|
|
8
|
-
layers?: {
|
|
9
|
-
visible: boolean;
|
|
10
|
-
id: string;
|
|
11
|
-
}[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* TODO: Add short & useful description
|
|
15
|
-
*
|
|
16
|
-
* @param {object} props
|
|
17
|
-
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
18
|
-
*
|
|
19
|
-
* @component
|
|
20
|
-
*/
|
|
21
|
-
export interface MlShareMapStateProps {
|
|
22
|
-
mapId?: string;
|
|
23
|
-
idPrefix?: string;
|
|
24
|
-
active?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface LayerStatesInterface {
|
|
27
|
-
[key: string]: boolean;
|
|
28
|
-
}
|
|
29
|
-
declare const MlShareMapState: {
|
|
30
|
-
(props: MlShareMapStateProps): React.JSX.Element;
|
|
31
|
-
defaultProps: {
|
|
32
|
-
mapId: undefined;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default MlShareMapState;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Feature } from 'geojson';
|
|
3
|
-
import { SxProps } from '@mui/system/styleFunctionSx/styleFunctionSx';
|
|
4
|
-
export interface MlSketchToolProps {
|
|
5
|
-
/**
|
|
6
|
-
* Id of the target MapLibre instance in mapContext
|
|
7
|
-
*/
|
|
8
|
-
mapId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
11
|
-
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
12
|
-
*/
|
|
13
|
-
insertBeforeLayer?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Style attribute for the button-style
|
|
16
|
-
* https://mui.com/system/getting-started/the-sx-prop/
|
|
17
|
-
*/
|
|
18
|
-
buttonStyleOverride?: SxProps;
|
|
19
|
-
/**
|
|
20
|
-
* Callback function that is called each time GeoJson data has changed within MlSketchTool.
|
|
21
|
-
* First parameter contains all geometries in the `geometries` prop.
|
|
22
|
-
*/
|
|
23
|
-
onChange?: (para: SketchStateType) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Determines whether the instruction text should be shown.
|
|
26
|
-
*/
|
|
27
|
-
showInstruction?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Callback function triggered when the "Show instructions" checkbox is toggled.
|
|
30
|
-
*/
|
|
31
|
-
onShowInstructionChange?: (value: boolean) => void;
|
|
32
|
-
}
|
|
33
|
-
type SketchStateType = {
|
|
34
|
-
selectedGeoJson?: Feature;
|
|
35
|
-
activeGeometryIndex?: number;
|
|
36
|
-
geometries: Feature[];
|
|
37
|
-
drawMode?: keyof MapboxDraw.Modes;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Component template
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
declare const MlSketchTool: {
|
|
44
|
-
(props: MlSketchToolProps): React.JSX.Element;
|
|
45
|
-
defaultProps: {
|
|
46
|
-
mapId: undefined;
|
|
47
|
-
buttonStyleOverride: {};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export default MlSketchTool;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Feature, FeatureCollection } from 'geojson';
|
|
3
|
-
/**
|
|
4
|
-
* MlSpatialElevationProfile returns a Button that will add a standard OSM tile layer to the maplibre-gl instance.
|
|
5
|
-
*
|
|
6
|
-
* @component
|
|
7
|
-
*/
|
|
8
|
-
interface geojson {
|
|
9
|
-
features: Feature | FeatureCollection | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface MlSpatialElevationProfileProps {
|
|
12
|
-
/**
|
|
13
|
-
* Id of the target MapLibre instance in mapContext
|
|
14
|
-
*/
|
|
15
|
-
mapId?: string;
|
|
16
|
-
/**
|
|
17
|
-
* GeoJSON data that is supposed to be rendered by this component.
|
|
18
|
-
*/
|
|
19
|
-
geojson: geojson | FeatureCollection | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Prefix of the component id this component uses when adding elements to the MapLibreGl-instance
|
|
22
|
-
*/
|
|
23
|
-
idPrefix?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Number describes the factor of the height of the elevation
|
|
26
|
-
*/
|
|
27
|
-
elevationFactor?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The layerId of an existing layer this layer should be rendered visually beneath
|
|
30
|
-
* https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addlayer - see "beforeId" property
|
|
31
|
-
*/
|
|
32
|
-
insertBeforeLayer?: string;
|
|
33
|
-
}
|
|
34
|
-
declare const MlSpatialElevationProfile: {
|
|
35
|
-
(props: MlSpatialElevationProfileProps): React.JSX.Element;
|
|
36
|
-
defaultProps: {
|
|
37
|
-
elevationFactor: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export default MlSpatialElevationProfile;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FeatureCollection } from 'geojson';
|
|
2
|
-
interface geometry {
|
|
3
|
-
coordinates: Array<number>;
|
|
4
|
-
}
|
|
5
|
-
interface line {
|
|
6
|
-
geometry: geometry;
|
|
7
|
-
}
|
|
8
|
-
interface _geojsonInfo {
|
|
9
|
-
line: line;
|
|
10
|
-
min: number;
|
|
11
|
-
}
|
|
12
|
-
export default function getElevationData(_geojsonInfo: _geojsonInfo, elevationFactor: number): FeatureCollection;
|
|
13
|
-
export {};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeatureCollection } from 'geojson';
|
|
3
|
-
import { LineLayerSpecification, CircleLayerSpecification, FillLayerSpecification, SymbolLayoutProps, SymbolPaintProps } from 'maplibre-gl';
|
|
4
|
-
import { useLayerProps } from 'src/hooks/useLayer';
|
|
5
|
-
export interface MlTemporalControllerProps {
|
|
6
|
-
/**
|
|
7
|
-
* Id of the target MapLibre instance in mapContext
|
|
8
|
-
*/
|
|
9
|
-
mapId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Id of an existing layer in the mapLibre instance to help specify the layer order.
|
|
12
|
-
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
13
|
-
*/
|
|
14
|
-
insertBeforeLayer?: string;
|
|
15
|
-
/**
|
|
16
|
-
* GeoJSON data that is supposed to be rendered by this component.
|
|
17
|
-
*/
|
|
18
|
-
geojson: FeatureCollection;
|
|
19
|
-
/**
|
|
20
|
-
* If true,the component creates and loads a MlGeoJsonLayer to show the data.
|
|
21
|
-
*/
|
|
22
|
-
ownLayer?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* MapLibre attribution shown in the bottom right of the map, if this layer is visible
|
|
25
|
-
*/
|
|
26
|
-
attribution?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Type of the layer that will be added to the MapLibre instance.
|
|
29
|
-
* Possible values: "line", "circle", "fill"
|
|
30
|
-
*/
|
|
31
|
-
type?: 'fill' | 'line' | 'circle';
|
|
32
|
-
/**
|
|
33
|
-
* Property field where the time informations is available.
|
|
34
|
-
*/
|
|
35
|
-
timeField: string;
|
|
36
|
-
/**
|
|
37
|
-
* Lowest time value to be shown in the time line.
|
|
38
|
-
* By default, it is set to the lowest value in the time field.
|
|
39
|
-
*/
|
|
40
|
-
minVal?: number;
|
|
41
|
-
/**
|
|
42
|
-
*When true, a label layer will be added by the component. In that case, the "labelField" propertie is mandatory.
|
|
43
|
-
*/
|
|
44
|
-
label?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Property field where the label information is available.
|
|
47
|
-
*/
|
|
48
|
-
labelField?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Highest time value to be shown in the time line.
|
|
51
|
-
* By default, it is set to the highest value in the time field.
|
|
52
|
-
*/
|
|
53
|
-
maxVal?: number;
|
|
54
|
-
/**
|
|
55
|
-
* the value at which the component is to be loaded.
|
|
56
|
-
* If not specified, the component starts at the minimum value.
|
|
57
|
-
*/
|
|
58
|
-
initialVal?: number;
|
|
59
|
-
/**
|
|
60
|
-
* When true, the features will be accumulated in the map.
|
|
61
|
-
* This option ist by default false.
|
|
62
|
-
*/
|
|
63
|
-
accumulate?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* When true, the component will fit the map bounds to the shown features.
|
|
66
|
-
* This option ist by default true.
|
|
67
|
-
*/
|
|
68
|
-
fitBounds?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Boolean value that disables and enables the controls drawer.
|
|
71
|
-
*/
|
|
72
|
-
showControls?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Paint property object for the features layer.
|
|
75
|
-
* Possible props depend on the layer type.
|
|
76
|
-
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#line
|
|
77
|
-
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#circle
|
|
78
|
-
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
79
|
-
*/
|
|
80
|
-
paint?: CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
|
|
81
|
-
/**
|
|
82
|
-
* Sets the color of the features rendered by this component.
|
|
83
|
-
*/
|
|
84
|
-
featuresColor?: string;
|
|
85
|
-
/**
|
|
86
|
-
* How many units the timeline runs through at each step.
|
|
87
|
-
* By default it is set to 1.
|
|
88
|
-
*/
|
|
89
|
-
step?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The time between each addition to the counter, expressed in milliseconds.
|
|
92
|
-
* By default, 200 ms.
|
|
93
|
-
*/
|
|
94
|
-
interval?: number;
|
|
95
|
-
/**
|
|
96
|
-
* A numeric value that sets how many steps before the feature starts to appear.
|
|
97
|
-
* By default it is set to 5 steps.
|
|
98
|
-
*/
|
|
99
|
-
fadeIn?: number;
|
|
100
|
-
/**
|
|
101
|
-
* A numeric value that sets how many steps the feature fades out after it proper time value.
|
|
102
|
-
* By default it is set to 5 steps.
|
|
103
|
-
*/
|
|
104
|
-
fadeOut?: number;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the color of the features rendered by this component.
|
|
107
|
-
*/
|
|
108
|
-
labelColor?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Layout property object, that is passed to the labels layer.
|
|
111
|
-
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#symbol
|
|
112
|
-
*/
|
|
113
|
-
labelLayout?: SymbolLayoutProps;
|
|
114
|
-
/**
|
|
115
|
-
* Paint property object for the features layer.
|
|
116
|
-
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#symbol
|
|
117
|
-
*/
|
|
118
|
-
labelPaint?: SymbolPaintProps;
|
|
119
|
-
/**
|
|
120
|
-
* Hover event handler that is executed whenever a geometry rendered by this component is hovered.
|
|
121
|
-
*/
|
|
122
|
-
/**
|
|
123
|
-
* A numeric value that sets how many steps before the labels start to appear.
|
|
124
|
-
* By default it is set to 5 steps.
|
|
125
|
-
*/
|
|
126
|
-
labelFadeIn?: number;
|
|
127
|
-
/**
|
|
128
|
-
* A numeric value that sets how many steps the labels fade out after their proper time value.
|
|
129
|
-
* By default it is set to 5 steps.
|
|
130
|
-
*/
|
|
131
|
-
labelFadeOut?: number;
|
|
132
|
-
/**
|
|
133
|
-
* If true, the current time value will be displayed in the controlls panel.
|
|
134
|
-
*/
|
|
135
|
-
displayCurrentValue?: boolean;
|
|
136
|
-
/**
|
|
137
|
-
* Click event handler that is executed whenever a geometry rendered by this component is clicked.
|
|
138
|
-
*/
|
|
139
|
-
onClick?: useLayerProps['onClick'];
|
|
140
|
-
/**
|
|
141
|
-
* Click event handler that is executed whenever a geometry rendered by this component is hovered.
|
|
142
|
-
*/
|
|
143
|
-
onHover?: useLayerProps['onHover'];
|
|
144
|
-
/**
|
|
145
|
-
* Leave event handler that is executed whenever a geometry rendered by this component is
|
|
146
|
-
* left/unhovered.
|
|
147
|
-
*/
|
|
148
|
-
onLeave?: useLayerProps['onLeave'];
|
|
149
|
-
/**
|
|
150
|
-
* Callback function defined by the user to recive the current time value and paint property in the parent component.
|
|
151
|
-
*/
|
|
152
|
-
onStateChange?: React.Dispatch<React.SetStateAction<TemporalControllerValues | undefined>>;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Select a GeoJSON object to be displayed in a temporal line.
|
|
156
|
-
*@component
|
|
157
|
-
*/
|
|
158
|
-
export interface TemporalControllerValues {
|
|
159
|
-
current: number;
|
|
160
|
-
paint: CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
|
|
161
|
-
}
|
|
162
|
-
declare const MlTemporalController: {
|
|
163
|
-
(props: MlTemporalControllerProps): React.JSX.Element;
|
|
164
|
-
defaultProps: {
|
|
165
|
-
mapId: undefined;
|
|
166
|
-
ownLayer: boolean;
|
|
167
|
-
type: string;
|
|
168
|
-
step: number;
|
|
169
|
-
interval: number;
|
|
170
|
-
fadeIn: number;
|
|
171
|
-
fadeOut: number;
|
|
172
|
-
labelFadeIn: number;
|
|
173
|
-
labelFadeOut: number;
|
|
174
|
-
accumulate: boolean;
|
|
175
|
-
fitBounds: boolean;
|
|
176
|
-
label: boolean;
|
|
177
|
-
attribution: string;
|
|
178
|
-
displayCurrentValue: boolean;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
export default MlTemporalController;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SymbolLayerSpecification, SymbolLayoutProps } from 'maplibre-gl';
|
|
3
|
-
import { FeatureCollection } from 'geojson';
|
|
4
|
-
interface MlTemporalControllerLabelsProps {
|
|
5
|
-
data: FeatureCollection;
|
|
6
|
-
currentVal: number;
|
|
7
|
-
fadeIn: number;
|
|
8
|
-
fadeOut: number;
|
|
9
|
-
step: number;
|
|
10
|
-
labelField: string;
|
|
11
|
-
labelColor: string;
|
|
12
|
-
timeField: string;
|
|
13
|
-
minVal: number;
|
|
14
|
-
accumulate: boolean;
|
|
15
|
-
isPlaying: boolean;
|
|
16
|
-
labelLayout?: SymbolLayoutProps;
|
|
17
|
-
labelPaint?: SymbolLayerSpecification;
|
|
18
|
-
}
|
|
19
|
-
export default function MlTemporalControllerLabels(props: MlTemporalControllerLabelsProps): React.JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TemporalControllerPlayerProps {
|
|
3
|
-
currentVal: number;
|
|
4
|
-
isPlaying: boolean;
|
|
5
|
-
step: number;
|
|
6
|
-
interval: number;
|
|
7
|
-
minVal: number;
|
|
8
|
-
maxVal: number;
|
|
9
|
-
returnCurrent: React.Dispatch<React.SetStateAction<number>>;
|
|
10
|
-
returnPlaying: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
-
fadeIn: number;
|
|
12
|
-
open: boolean;
|
|
13
|
-
fadeOut: number;
|
|
14
|
-
featuresColor: string;
|
|
15
|
-
labels: boolean;
|
|
16
|
-
labelColor: string;
|
|
17
|
-
labelFadeIn: number;
|
|
18
|
-
labelFadeOut: number;
|
|
19
|
-
accumulate: boolean;
|
|
20
|
-
display: boolean;
|
|
21
|
-
}
|
|
22
|
-
export default function TemporalControllerPlayer(props: TemporalControllerPlayerProps): React.JSX.Element;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { LineLayerSpecification, CircleLayerSpecification, FillLayerSpecification } from 'maplibre-gl';
|
|
2
|
-
interface paintPickerProps {
|
|
3
|
-
type: 'fill' | 'line' | 'circle' | undefined;
|
|
4
|
-
timeField: string;
|
|
5
|
-
currentVal: number;
|
|
6
|
-
minVal: number;
|
|
7
|
-
isPlaying: boolean;
|
|
8
|
-
fadeIn: number;
|
|
9
|
-
fadeOut: number;
|
|
10
|
-
step: number;
|
|
11
|
-
featuresColor: string;
|
|
12
|
-
accumulate: boolean;
|
|
13
|
-
userPaint: CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
|
|
14
|
-
}
|
|
15
|
-
export default function paintPicker(props: paintPickerProps): {
|
|
16
|
-
"circle-radius"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
17
|
-
"circle-color"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ColorSpecification>;
|
|
18
|
-
"circle-blur"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
19
|
-
"circle-opacity"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
20
|
-
"circle-translate"?: import("maplibre-gl").PropertyValueSpecification<[number, number]>;
|
|
21
|
-
"circle-translate-anchor"?: import("maplibre-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
22
|
-
"circle-pitch-scale"?: import("maplibre-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
23
|
-
"circle-pitch-alignment"?: import("maplibre-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
24
|
-
"circle-stroke-width"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
25
|
-
"circle-stroke-color"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ColorSpecification>;
|
|
26
|
-
"circle-stroke-opacity"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
27
|
-
} | {
|
|
28
|
-
"fill-antialias"?: import("maplibre-gl").PropertyValueSpecification<boolean>;
|
|
29
|
-
"fill-opacity"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
30
|
-
"fill-color"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ColorSpecification>;
|
|
31
|
-
"fill-outline-color"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ColorSpecification>;
|
|
32
|
-
"fill-translate"?: import("maplibre-gl").PropertyValueSpecification<[number, number]>;
|
|
33
|
-
"fill-translate-anchor"?: import("maplibre-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
34
|
-
"fill-pattern"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ResolvedImageSpecification>;
|
|
35
|
-
} | {
|
|
36
|
-
"line-opacity"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
37
|
-
"line-color"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ColorSpecification>;
|
|
38
|
-
"line-translate"?: import("maplibre-gl").PropertyValueSpecification<[number, number]>;
|
|
39
|
-
"line-translate-anchor"?: import("maplibre-gl").PropertyValueSpecification<"map" | "viewport">;
|
|
40
|
-
"line-width"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
41
|
-
"line-gap-width"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
42
|
-
"line-offset"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
43
|
-
"line-blur"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<number>;
|
|
44
|
-
"line-dasharray"?: import("maplibre-gl").PropertyValueSpecification<Array<number>>;
|
|
45
|
-
"line-pattern"?: import("maplibre-gl").DataDrivenPropertyValueSpecification<import("maplibre-gl").ResolvedImageSpecification>;
|
|
46
|
-
"line-gradient"?: import("maplibre-gl").ExpressionSpecification;
|
|
47
|
-
} | {
|
|
48
|
-
'circle-color': string;
|
|
49
|
-
} | {
|
|
50
|
-
'fill-color': string;
|
|
51
|
-
'fill-outline-color': string;
|
|
52
|
-
} | {
|
|
53
|
-
'line-color': string;
|
|
54
|
-
} | {
|
|
55
|
-
'fill-color': string;
|
|
56
|
-
'fill-opacity': (string | number | string[])[];
|
|
57
|
-
'fill-outline-color': (string | number | string[])[];
|
|
58
|
-
};
|
|
59
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FeatureCollection } from 'geojson';
|
|
2
|
-
export interface useTemporalControllerProps {
|
|
3
|
-
geojson: FeatureCollection;
|
|
4
|
-
timeField: string;
|
|
5
|
-
initialVal?: number;
|
|
6
|
-
minVal?: number;
|
|
7
|
-
maxVal?: number;
|
|
8
|
-
mapId: string | undefined;
|
|
9
|
-
}
|
|
10
|
-
export default function useFilterData(props: useTemporalControllerProps): {
|
|
11
|
-
filteredData: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties> | undefined;
|
|
12
|
-
minVal: any;
|
|
13
|
-
maxVal: any;
|
|
14
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TerrainSpecification } from 'maplibre-gl';
|
|
3
|
-
interface MlTerrainLayerProps {
|
|
4
|
-
/**
|
|
5
|
-
* Id of the target MapLibre instance in mapContext
|
|
6
|
-
*/
|
|
7
|
-
mapId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Source of tiles with possibles options
|
|
10
|
-
*/
|
|
11
|
-
sourceOptions?: object;
|
|
12
|
-
/**
|
|
13
|
-
* Options for new exaggeration value
|
|
14
|
-
*/
|
|
15
|
-
terrainOptions?: TerrainSpecification;
|
|
16
|
-
}
|
|
17
|
-
export type { MlTerrainLayerProps };
|
|
18
|
-
/**
|
|
19
|
-
* Create Terrain Layer Component
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
declare const MlTerrainLayer: {
|
|
23
|
-
(props: MlTerrainLayerProps): React.JSX.Element;
|
|
24
|
-
defaultProps: {
|
|
25
|
-
mapId: undefined;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default MlTerrainLayer;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Renders obj or gltf 3D Models on the MapLibreMap referenced by props.mapId
|
|
4
|
-
*
|
|
5
|
-
* @component
|
|
6
|
-
*/
|
|
7
|
-
export interface MlThreeJsLayerProps {
|
|
8
|
-
mapId?: string;
|
|
9
|
-
init?: () => void;
|
|
10
|
-
onDone?: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const MlThreeJsLayer: (props: MlThreeJsLayerProps) => React.JSX.Element;
|
|
13
|
-
export default MlThreeJsLayer;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Feature, FeatureCollection } from 'geojson';
|
|
3
|
-
import { MlGeoJsonLayerProps } from '../MlGeoJsonLayer/MlGeoJsonLayer';
|
|
4
|
-
export type MlTransitionGeoJsonLayerProps = MlGeoJsonLayerProps & {
|
|
5
|
-
transitionTime?: number;
|
|
6
|
-
geojson?: Feature | FeatureCollection | null;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Adds source and layer of types "line", "fill" or "circle" to display GeoJSON data on the map.
|
|
10
|
-
*/
|
|
11
|
-
declare const MlTransitionGeoJsonLayer: (props: MlTransitionGeoJsonLayerProps) => React.JSX.Element;
|
|
12
|
-
export default MlTransitionGeoJsonLayer;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface MlUseMapDebuggerProps {
|
|
3
|
-
mapId?: string;
|
|
4
|
-
watch?: string[];
|
|
5
|
-
filter?: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
type MlUseMapDebuggerComponent = FC<MlUseMapDebuggerProps> & {
|
|
10
|
-
defaultProps: MlUseMapDebuggerProps;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Renders a collapsible top-drawer containing live map debug information
|
|
14
|
-
*
|
|
15
|
-
* @param {MlUseMapDebuggerProps} props
|
|
16
|
-
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
17
|
-
*
|
|
18
|
-
* @component
|
|
19
|
-
*/
|
|
20
|
-
declare const MlUseMapDebugger: MlUseMapDebuggerComponent;
|
|
21
|
-
export default MlUseMapDebugger;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayerSpecification } from 'maplibre-gl';
|
|
3
|
-
import { VectorSourceSpecification } from 'maplibre-gl';
|
|
4
|
-
export type ExtendedLayerSpecification = LayerSpecification & {
|
|
5
|
-
masterVisible?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type MlVectorTileLayerProps = {
|
|
8
|
-
mapId?: string;
|
|
9
|
-
insertBeforeLayer?: string;
|
|
10
|
-
layerId?: string;
|
|
11
|
-
sourceOptions?: VectorSourceSpecification;
|
|
12
|
-
url?: string;
|
|
13
|
-
layers: ExtendedLayerSpecification[];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Adds a vector-tile source and 0...n vector-tile-layers to the MapLibre instance referenced by
|
|
17
|
-
* props.mapId
|
|
18
|
-
*
|
|
19
|
-
* @component
|
|
20
|
-
*/
|
|
21
|
-
declare const MlVectorTileLayer: (props: MlVectorTileLayerProps) => React.JSX.Element;
|
|
22
|
-
export default MlVectorTileLayer;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface MlWmsFeatureInfoPopupProps {
|
|
3
|
-
/**
|
|
4
|
-
* Id of the target MapLibre instance in mapContext
|
|
5
|
-
*/
|
|
6
|
-
mapId?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* TODO: Add short & useful description
|
|
10
|
-
*
|
|
11
|
-
* @param {object} props
|
|
12
|
-
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
13
|
-
*
|
|
14
|
-
* @component
|
|
15
|
-
*/
|
|
16
|
-
declare const MlWmsFeatureInfoPopup: {
|
|
17
|
-
(props: MlWmsFeatureInfoPopupProps): React.JSX.Element;
|
|
18
|
-
defaultProps: {
|
|
19
|
-
mapId: undefined;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default MlWmsFeatureInfoPopup;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RasterLayerSpecification, RasterSourceSpecification } from 'maplibre-gl';
|
|
3
|
-
export interface MlWmsLayerProps {
|
|
4
|
-
urlParameters?: {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
url: string;
|
|
8
|
-
visible?: boolean;
|
|
9
|
-
attribution?: string;
|
|
10
|
-
mapId?: string;
|
|
11
|
-
sourceOptions?: RasterSourceSpecification;
|
|
12
|
-
layerOptions?: RasterLayerSpecification;
|
|
13
|
-
insertBeforeLayer?: string;
|
|
14
|
-
layerId?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Adds a WMS raster source & layer to the maplibre-gl instance
|
|
18
|
-
*
|
|
19
|
-
* @param {object} props
|
|
20
|
-
* @param {object} props.urlParameters URL query parameters that will be added to the WMS URL. A layers property (string) is mandatory. Any value defined on this attribute will extend the default object
|
|
21
|
-
* @param {string} props.url WMS URL
|
|
22
|
-
* @param {bool} props.visible Sets layer "visibility" property to "visible" if true or "none" if false
|
|
23
|
-
* @param {string} props.attribution MapLibre attribution shown in the bottom right of the map, if this layer is visible
|
|
24
|
-
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
25
|
-
* @param {object} props.sourceOptions Object that is passed to the MapLibre.addSource call as config option parameter
|
|
26
|
-
* @param {object} props.layerOptions Object that is passed to the MapLibre.addLayer call as config option parameter
|
|
27
|
-
* @param {string} props.insertBeforeLayer Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
28
|
-
This layer will be visually beneath the layer with the "insertBeforeLayer" id
|
|
29
|
-
*
|
|
30
|
-
* @component
|
|
31
|
-
*/
|
|
32
|
-
declare const MlWmsLayer: {
|
|
33
|
-
(props: MlWmsLayerProps): React.JSX.Element;
|
|
34
|
-
defaultProps: {
|
|
35
|
-
visible: boolean;
|
|
36
|
-
urlParameters: {
|
|
37
|
-
bbox: string;
|
|
38
|
-
format: string;
|
|
39
|
-
service: string;
|
|
40
|
-
version: string;
|
|
41
|
-
request: string;
|
|
42
|
-
srs: string;
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
styles: string;
|
|
46
|
-
};
|
|
47
|
-
attribution: string;
|
|
48
|
-
sourceOptions: {
|
|
49
|
-
minZoom: number;
|
|
50
|
-
maxZoom: number;
|
|
51
|
-
};
|
|
52
|
-
layerOptions: {
|
|
53
|
-
minZoom: number;
|
|
54
|
-
maxZoom: number;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export default MlWmsLayer;
|