@mapcomponents/react-maplibre 1.0.8 → 1.0.10
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 +23 -0
- package/dist/index.cjs.js +812 -120
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +806 -119
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/MlClientSearch/lib/createGeojsonFeature.d.ts +4 -0
- package/dist/{components → src/components}/MlCreatePdfButton/MlCreatePdfButton.d.ts +1 -1
- package/dist/{components → src/components}/MlCreatePdfForm/lib/PdfPreview.d.ts +1 -1
- package/dist/{components → src/components}/MlCreatePngButton/MlCreatePngButton.d.ts +1 -1
- package/dist/{components → src/components}/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +2 -2
- package/dist/{components → src/components}/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +2 -1
- package/dist/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +4 -0
- package/dist/{components → src/components}/MlGpxViewer/MlGpxViewer.d.ts +1 -1
- package/dist/{components → src/components}/MlGpxViewer/util/GeoJsonContext.d.ts +3 -3
- package/dist/{components → src/components}/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +1 -1
- package/dist/{components → src/components}/MlLayer/MlLayer.d.ts +1 -1
- package/dist/{components → src/components}/MlMeasureTool/MlMeasureTool.d.ts +8 -7
- package/dist/{components → src/components}/MlMultiMeasureTool/MlMultiMeasureTool.d.ts +3 -3
- package/dist/src/components/MlOgcApiFeatures/MlOgcApiFeatures.d.ts +45 -0
- package/dist/{components → src/components}/MlSketchTool/MlSketchTool.d.ts +1 -1
- package/dist/{components → src/components}/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +1 -1
- package/dist/{components → src/components}/MlSpatialElevationProfile/util/getElevationData.d.ts +1 -1
- package/dist/{components → src/components}/MlTemporalController/MlTemporalController.d.ts +1 -1
- package/dist/{components → src/components}/MlTemporalController/utils/MlTemporalControllerLabels.d.ts +1 -1
- package/dist/{components → src/components}/MlTemporalController/utils/useFilterData.d.ts +2 -2
- package/dist/{components → src/components}/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +2 -2
- package/dist/{components → src/components}/MlVectorTileLayer/MlVectorTileLayer.d.ts +4 -1
- package/dist/src/decorators/MapContextReduxStoreDecorator.d.ts +7 -0
- package/dist/{hooks → src/hooks}/useExportMap/lib.d.ts +1 -1
- package/dist/{hooks → src/hooks}/useFeatureEditor/useFeatureEditor.d.ts +3 -3
- package/dist/{hooks → src/hooks}/useFeatureEditor/utils/FeatureEditorStyle.d.ts +44 -16
- package/dist/{hooks → src/hooks}/useGpx/useGpx.d.ts +2 -2
- package/dist/{hooks → src/hooks}/useLayer.d.ts +3 -3
- package/dist/{hooks → src/hooks}/useLayerHoverPopup/LayerHoverPopup.d.ts +2 -1
- package/dist/{index.d.ts → src/index.d.ts} +38 -0
- package/dist/{protocol_handlers → src/protocol_handlers}/csv.d.ts +2 -2
- package/dist/{protocol_handlers → src/protocol_handlers}/osm.d.ts +2 -2
- package/dist/{protocol_handlers → src/protocol_handlers}/topojson.d.ts +2 -2
- package/dist/{protocol_handlers → src/protocol_handlers}/xml.d.ts +2 -2
- package/dist/src/stores/map.store.d.ts +105 -0
- package/dist/{ui_components → src/ui_components}/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/{ui_components → src/ui_components}/LayerList/util/LayerListItemVectorLayer.d.ts +2 -4
- package/dist/src/ui_components/LayerTree/LayerOnMap.d.ts +7 -0
- package/dist/src/ui_components/LayerTree/LayerTree.d.ts +6 -0
- package/dist/src/ui_components/LayerTree/LayerTreeListItem.d.ts +18 -0
- package/dist/src/ui_components/LayerTree/util/LayerPropertyForm.d.ts +9 -0
- package/dist/src/ui_components/LayerTree/util/input/ColorPicker.d.ts +7 -0
- package/package.json +14 -8
- package/rollup.config.mjs +2 -1
- package/dist/components/MlClientSearch/lib/createGeojsonFeature.d.ts +0 -3
- package/dist/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +0 -2
- /package/dist/{components → src/components}/MapLibreMap/MapLibreMap.d.ts +0 -0
- /package/dist/{components → src/components}/MapLibreMap/lib/MapLibreGlWrapper.d.ts +0 -0
- /package/dist/{components → src/components}/MlCenterPosition/MlCenterPosition.d.ts +0 -0
- /package/dist/{components → src/components}/MlClientSearch/MlClientSearch.d.ts +0 -0
- /package/dist/{components → src/components}/MlClientSearch/lib/SearchContext.d.ts +0 -0
- /package/dist/{components → src/components}/MlClientSearch/lib/SearchForm.d.ts +0 -0
- /package/dist/{components → src/components}/MlComponentTemplate/MlComponentTemplate.d.ts +0 -0
- /package/dist/{components → src/components}/MlCreatePdfForm/MlCreatePdfForm.d.ts +0 -0
- /package/dist/{components → src/components}/MlCreatePdfForm/lib/PdfContext.d.ts +0 -0
- /package/dist/{components → src/components}/MlCreatePdfForm/lib/PdfForm.d.ts +0 -0
- /package/dist/{components → src/components}/MlCreatePdfForm/lib/pdf.templates.d.ts +0 -0
- /package/dist/{components → src/components}/MlFeatureEditor/MlFeatureEditor.d.ts +0 -0
- /package/dist/{components → src/components}/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +0 -0
- /package/dist/{components → src/components}/MlFollowGps/MlFollowGps.d.ts +0 -0
- /package/dist/{components → src/components}/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +0 -0
- /package/dist/{components → src/components}/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +0 -0
- /package/dist/{components → src/components}/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +0 -0
- /package/dist/{components → src/components}/MlGpxViewer/util/GeoJsonProvider.d.ts +0 -0
- /package/dist/{components → src/components}/MlGpxViewer/util/Metadata.d.ts +0 -0
- /package/dist/{components → src/components}/MlGpxViewer/util/MlGpxDemoLoader.d.ts +0 -0
- /package/dist/{components → src/components}/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +0 -0
- /package/dist/{components → src/components}/MlLayerMagnify/MlLayerMagnify.d.ts +0 -0
- /package/dist/{components → src/components}/MlLayerSwipe/MlLayerSwipe.d.ts +0 -0
- /package/dist/{components → src/components}/MlLayerSwitcher/MlLayerSwitcher.d.ts +0 -0
- /package/dist/{components → src/components}/MlLayerSwitcher/components/LayerBox.d.ts +0 -0
- /package/dist/{components → src/components}/MlMarker/MlMarker.d.ts +0 -0
- /package/dist/{components → src/components}/MlNavigationCompass/MlNavigationCompass.d.ts +0 -0
- /package/dist/{components → src/components}/MlNavigationTools/MlNavigationTools.d.ts +0 -0
- /package/dist/{components → src/components}/MlOrderLayers/MlOrderLayers.d.ts +0 -0
- /package/dist/{components → src/components}/MlScaleReference/MlScaleReference.d.ts +0 -0
- /package/dist/{components → src/components}/MlShareMapState/MlShareMapState.d.ts +0 -0
- /package/dist/{components → src/components}/MlTemporalController/utils/TemporalControllerPlayer.d.ts +0 -0
- /package/dist/{components → src/components}/MlTemporalController/utils/paintPicker.d.ts +0 -0
- /package/dist/{components → src/components}/MlTerrainLayer/MlTerrainLayer.d.ts +0 -0
- /package/dist/{components → src/components}/MlThreeJsLayer/MlThreeJsLayer.d.ts +0 -0
- /package/dist/{components → src/components}/MlUseMapDebugger/MlUseMapDebugger.d.ts +0 -0
- /package/dist/{components → src/components}/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +0 -0
- /package/dist/{components → src/components}/MlWmsLayer/MlWmsLayer.d.ts +0 -0
- /package/dist/{components → src/components}/MlWmsLoader/MlWmsLoader.d.ts +0 -0
- /package/dist/{components → src/components}/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +0 -0
- /package/dist/{components → src/components}/MlWmsLoader/utils/WMSLinks.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/LayerContext.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/MapContext.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/SimpleDataContext.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/SimpleDataProvider.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/EmptyMapDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/GeoJsonMapDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/LowZoomDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/MapContextDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/MapContextDecoratorHooks.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/MultiMapContextDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/NoNavToolsDecorator.d.ts +0 -0
- /package/dist/{decorators → src/decorators}/ThemeDecorator.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useAddImage/useAddImage.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useAddProtocol/useAddProtocol.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCameraFollowPath/useCameraFollowPath.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useExportMap/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useFitLayerBounds.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useLayerContext.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useLayerFilter/useLayerFilter.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMap.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapState.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useSource.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useWms.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/bright.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/config.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/gruvbox.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/medieval_kingdom.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/monokai.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/oceanic_next.d.ts +0 -0
- /package/dist/{omt_styles → src/omt_styles}/solarized.d.ts +0 -0
- /package/dist/{protocol_handlers → src/protocol_handlers}/mbtiles.d.ts +0 -0
- /package/dist/{protocol_handlers → src/protocol_handlers}/utils/getProtocolData.d.ts +0 -0
- /package/dist/{protocol_handlers → src/protocol_handlers}/utils/protocolPathParser.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/AddLayerButton.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/AddLayerPopup.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/GeoJsonLayerForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/LayerTypeForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/MbtilesLayerForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/ProtocolHandlerLayerForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/WmsLayerForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/utils/CSVOptionsFomular.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/AddLayerButton/LayerConfigForms/utils/OsmOptionsFomular.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/ColorPicker/transformers.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/ConfirmDialog.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/DemoDescriptions.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/Dropzone.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/ImageLoader.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/LayerList.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/LayerListFolder.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/LayerListItem.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/LayerListItemFactory.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/util/LayerPropertyForm.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/util/SortableContainer.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LayerList/util/input/ColorPicker.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/LoadingOverlayContext.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/MapcomponentsTheme.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/SelectStyleButton/SelectStyleButton.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/SelectStyleButton/SelectStylePopup.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/Sidebar.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/SpeedDial/SpeedDial.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/TopToolbar.d.ts +0 -0
- /package/dist/{ui_components → src/ui_components}/UploadButton.d.ts +0 -0
- /package/dist/{util → src/util}/BubbleForInstructions.d.ts +0 -0
- /package/dist/{util → src/util}/Instructions.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Point, MultiPoint, LineString, MultiLineString, Polygon, Feature } from 'geojson';
|
|
2
|
+
type ExcludedGeometryCollection = Point | MultiPoint | LineString | MultiLineString | Polygon;
|
|
3
|
+
export declare function createGeoJSONFeature(coordinates: ExcludedGeometryCollection['coordinates']): Feature<ExcludedGeometryCollection>;
|
|
4
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { createExportOptions } from 'src/hooks/useExportMap/lib';
|
|
3
3
|
export interface MlCreatePdfButtonProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* ID of the target MapLibre instance in mapContext
|
|
6
6
|
*/
|
|
7
7
|
mapId?: string;
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { createExportOptions } from 'src/hooks/useExportMap/lib';
|
|
3
3
|
export interface MlCreatePngButtonProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* ID of the target MapLibre instance in mapContext
|
|
6
6
|
*/
|
|
7
7
|
mapId?: string;
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Feature, FeatureCollection } from '
|
|
2
|
+
import { Feature, FeatureCollection } from 'geojson';
|
|
3
3
|
import { useLayerProps } from '../../hooks/useLayer';
|
|
4
4
|
import { LineLayerSpecification, CircleLayerSpecification, FillLayerSpecification, LayerSpecification, RasterLayerSpecification } from 'maplibre-gl';
|
|
5
5
|
export type MlGeoJsonLayerProps = {
|
|
@@ -21,7 +21,7 @@ export type MlGeoJsonLayerProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* GeoJSON data that is supposed to be rendered by this component.
|
|
23
23
|
*/
|
|
24
|
-
geojson?:
|
|
24
|
+
geojson?: Feature | FeatureCollection | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Type of the layer that will be added to the MapLibre instance.
|
|
27
27
|
* All types from LayerSpecification union type are supported except the type from
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Feature, FeatureCollection } from "geojson";
|
|
2
|
+
import { LayerSpecification } from "maplibre-gl";
|
|
3
|
+
declare const getDefaulLayerTypeByGeometry: (geojson: Feature | FeatureCollection | undefined) => LayerSpecification['type'];
|
|
4
|
+
export default getDefaulLayerTypeByGeometry;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FeatureCollection } from
|
|
2
|
+
import { FeatureCollection } from "geojson";
|
|
3
3
|
type ContextProps = {
|
|
4
4
|
data: FeatureCollection;
|
|
5
|
-
setData:
|
|
6
|
-
getEmptyFeatureCollection:
|
|
5
|
+
setData: (data: FeatureCollection) => void;
|
|
6
|
+
getEmptyFeatureCollection: () => FeatureCollection;
|
|
7
7
|
};
|
|
8
8
|
declare const GeoJsonContext: React.Context<Partial<ContextProps>>;
|
|
9
9
|
export declare const GeoJsonContextProvider: React.Provider<Partial<ContextProps>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SymbolLayerSpecification } from 'maplibre-gl';
|
|
3
|
-
import { Feature, FeatureCollection } from '
|
|
3
|
+
import { Feature, FeatureCollection } from 'geojson';
|
|
4
4
|
export interface MlImageMarkerLayerProps {
|
|
5
5
|
/**
|
|
6
6
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useLayerProps } from '../../hooks/useLayer';
|
|
3
|
-
import { Feature, FeatureCollection } from '
|
|
3
|
+
import { Feature, FeatureCollection } from 'geojson';
|
|
4
4
|
interface MlLayerProps {
|
|
5
5
|
/**
|
|
6
6
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as turf from '@turf/turf';
|
|
3
|
-
import {
|
|
3
|
+
import { Feature } from 'geojson';
|
|
4
|
+
export interface MlMeasureToolOnChangeOptions {
|
|
5
|
+
value: number;
|
|
6
|
+
unit: string | undefined;
|
|
7
|
+
geojson: Feature;
|
|
8
|
+
geometries?: [];
|
|
9
|
+
}
|
|
4
10
|
export interface MlMeasureToolProps {
|
|
5
11
|
/**
|
|
6
12
|
* String that specify if the Tool measures an area ("polygon") or length ("line")
|
|
@@ -14,12 +20,7 @@ export interface MlMeasureToolProps {
|
|
|
14
20
|
* Callback function that is called each time measurment geometry within has changed within MlMeasureTool.
|
|
15
21
|
* First parameter is the new GeoJson feature.
|
|
16
22
|
*/
|
|
17
|
-
onChange?: (options:
|
|
18
|
-
value: number;
|
|
19
|
-
unit: string | undefined;
|
|
20
|
-
geojson: GeoJSONObject;
|
|
21
|
-
geometries?: [];
|
|
22
|
-
}) => void;
|
|
23
|
+
onChange?: (options: MlMeasureToolOnChangeOptions) => void;
|
|
23
24
|
/**
|
|
24
25
|
* Callback function that is called by the end of drawing geometries.
|
|
25
26
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
3
|
import * as turf from '@turf/turf';
|
|
4
|
-
import {
|
|
4
|
+
import { Feature } from 'geojson';
|
|
5
5
|
export interface MlMultiMeasureToolProps {
|
|
6
6
|
/**
|
|
7
7
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -35,8 +35,8 @@ export interface MlMultiMeasureToolProps {
|
|
|
35
35
|
*/
|
|
36
36
|
onChange?: (options: {
|
|
37
37
|
value: number;
|
|
38
|
-
unit
|
|
39
|
-
geojson:
|
|
38
|
+
unit?: string;
|
|
39
|
+
geojson: Feature;
|
|
40
40
|
geometries?: [];
|
|
41
41
|
}) => void;
|
|
42
42
|
/**
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MlGeoJsonLayerProps } from '../MlGeoJsonLayer/MlGeoJsonLayer';
|
|
3
|
+
export type MlOgcApiFeaturesProps = {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Id of the target MapLibre instance in mapContext
|
|
7
|
+
*/
|
|
8
|
+
mapId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The url of OGC API
|
|
11
|
+
*/
|
|
12
|
+
ogcApiUrl: URL;
|
|
13
|
+
/**
|
|
14
|
+
* The additional query parameters of OGC API
|
|
15
|
+
*/
|
|
16
|
+
ogcApiFeatureParams?: OgcApiFeaturesParamsTypes;
|
|
17
|
+
/**
|
|
18
|
+
* Fetches the features everytime (based on the current bbox) when the map gets moved
|
|
19
|
+
*/
|
|
20
|
+
reloadFeaturesOnMapMove?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Geojson Layer props. But omit 'geojson' because it gets set from the OGC API Feature call
|
|
23
|
+
*/
|
|
24
|
+
mlGeoJsonLayerProps?: Omit<MlGeoJsonLayerProps, 'geojson'>;
|
|
25
|
+
};
|
|
26
|
+
export type OgcApiFeaturesParamsTypes = {
|
|
27
|
+
bbox?: string;
|
|
28
|
+
bbox_crs?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
offset?: number;
|
|
31
|
+
crs?: string;
|
|
32
|
+
datetime?: string;
|
|
33
|
+
properties?: string;
|
|
34
|
+
sortby?: string;
|
|
35
|
+
f?: string;
|
|
36
|
+
filter?: string;
|
|
37
|
+
lang?: string;
|
|
38
|
+
q?: string;
|
|
39
|
+
properties_crs?: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
filter_lang?: string;
|
|
42
|
+
filter_crs?: string;
|
|
43
|
+
};
|
|
44
|
+
declare const MlOgcApiFeatures: (props: MlOgcApiFeaturesProps) => React.JSX.Element;
|
|
45
|
+
export default MlOgcApiFeatures;
|
package/dist/{components → src/components}/MlSpatialElevationProfile/util/getElevationData.d.ts
RENAMED
|
@@ -8,5 +8,5 @@ interface _geojsonInfo {
|
|
|
8
8
|
line: line;
|
|
9
9
|
min: number;
|
|
10
10
|
}
|
|
11
|
-
export default function getElevationData(_geojsonInfo: _geojsonInfo, elevationFactor: number): import("
|
|
11
|
+
export default function getElevationData(_geojsonInfo: _geojsonInfo, elevationFactor: number): import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
12
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FeatureCollection } from '
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import { LineLayerSpecification, CircleLayerSpecification, FillLayerSpecification, SymbolLayoutProps, SymbolPaintProps } from 'maplibre-gl';
|
|
4
4
|
import { useLayerProps } from 'src/hooks/useLayer';
|
|
5
5
|
export interface MlTemporalControllerProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SymbolLayerSpecification, SymbolLayoutProps } from 'maplibre-gl';
|
|
3
|
-
import { FeatureCollection } from '
|
|
3
|
+
import { FeatureCollection } from 'geojson';
|
|
4
4
|
interface MlTemporalControllerLabelsProps {
|
|
5
5
|
data: FeatureCollection;
|
|
6
6
|
currentVal: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeatureCollection } from '
|
|
1
|
+
import { FeatureCollection } from 'geojson';
|
|
2
2
|
export interface useTemporalControllerProps {
|
|
3
3
|
geojson: FeatureCollection;
|
|
4
4
|
timeField: string;
|
|
@@ -8,7 +8,7 @@ export interface useTemporalControllerProps {
|
|
|
8
8
|
mapId: string | undefined;
|
|
9
9
|
}
|
|
10
10
|
export default function useFilterData(props: useTemporalControllerProps): {
|
|
11
|
-
filteredData: FeatureCollection<import("
|
|
11
|
+
filteredData: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties> | undefined;
|
|
12
12
|
minVal: any;
|
|
13
13
|
maxVal: any;
|
|
14
14
|
};
|
package/dist/{components → src/components}/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Feature } from '
|
|
2
|
+
import { Feature } from 'geojson';
|
|
3
3
|
import { MlGeoJsonLayerProps } from '../MlGeoJsonLayer/MlGeoJsonLayer';
|
|
4
4
|
export type MlTransitionGeoJsonLayerProps = MlGeoJsonLayerProps & {
|
|
5
5
|
transitionTime?: number;
|
|
6
|
-
geojson?: Feature
|
|
6
|
+
geojson?: Feature;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Adds source and layer of types "line", "fill" or "circle" to display GeoJSON data on the map.
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayerSpecification } from 'maplibre-gl';
|
|
3
3
|
import { VectorSourceSpecification } from 'maplibre-gl';
|
|
4
|
+
export type ExtendedLayerSpecification = LayerSpecification & {
|
|
5
|
+
masterVisible?: boolean;
|
|
6
|
+
};
|
|
4
7
|
export type MlVectorTileLayerProps = {
|
|
5
8
|
mapId?: string;
|
|
6
9
|
insertBeforeLayer?: string;
|
|
7
10
|
layerId?: string;
|
|
8
11
|
sourceOptions?: VectorSourceSpecification;
|
|
9
12
|
url?: string;
|
|
10
|
-
layers:
|
|
13
|
+
layers: ExtendedLayerSpecification[];
|
|
11
14
|
};
|
|
12
15
|
/**
|
|
13
16
|
* Adds a vector-tile source and 0...n vector-tile-layers to the MapLibre instance referenced by
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MapLibreMapProps } from '../components/MapLibreMap/MapLibreMap';
|
|
2
|
+
import './style.css';
|
|
3
|
+
import { Decorator } from '@storybook/react';
|
|
4
|
+
declare const makeMapContextDecorators: (options: MapLibreMapProps['options']) => Decorator[];
|
|
5
|
+
declare const _default: Decorator[];
|
|
6
|
+
export default _default;
|
|
7
|
+
export { makeMapContextDecorators };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Map } from 'maplibre-gl';
|
|
2
2
|
import jsPDF from 'jspdf';
|
|
3
3
|
import MapLibreGlWrapper from '../../components/MapLibreMap/lib/MapLibreGlWrapper';
|
|
4
|
-
import { BBox } from '
|
|
4
|
+
import { BBox } from 'geojson';
|
|
5
5
|
interface createExportOptions {
|
|
6
6
|
map: MapLibreGlWrapper;
|
|
7
7
|
width: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css';
|
|
2
2
|
import MapboxDraw from '@mapbox/mapbox-gl-draw';
|
|
3
|
-
import {
|
|
3
|
+
import { Feature } from 'geojson';
|
|
4
4
|
export interface useFeatureEditorProps {
|
|
5
5
|
/**
|
|
6
6
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -19,7 +19,7 @@ export interface useFeatureEditorProps {
|
|
|
19
19
|
* Callback function that is called each time the GeoJson data has changed within MlFeatureEditor.
|
|
20
20
|
* First parameter is the new GeoJson feature.
|
|
21
21
|
*/
|
|
22
|
-
onChange?: (para:
|
|
22
|
+
onChange?: (para: Feature[]) => void;
|
|
23
23
|
/**
|
|
24
24
|
* Callback function that is called each time the GeoJson data within has been finished within MlFeatureEditor.
|
|
25
25
|
* First parameter is the new GeoJson feature.
|
|
@@ -39,7 +39,7 @@ export interface useFeatureEditorProps {
|
|
|
39
39
|
* GeoJson Feature editor that allows to create or manipulate GeoJson data
|
|
40
40
|
*/
|
|
41
41
|
declare const useFeatureEditor: (props: useFeatureEditorProps) => {
|
|
42
|
-
feature:
|
|
42
|
+
feature: Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[] | undefined;
|
|
43
43
|
drawToolsReady: boolean;
|
|
44
44
|
draw: MapboxDraw | undefined;
|
|
45
45
|
};
|
|
@@ -6,11 +6,13 @@ declare function featureEditorStyle(): ({
|
|
|
6
6
|
'fill-color': string;
|
|
7
7
|
'fill-outline-color': string;
|
|
8
8
|
'fill-opacity': number;
|
|
9
|
-
'circle-radius'?: undefined;
|
|
10
|
-
'circle-color'?: undefined;
|
|
11
9
|
'line-color'?: undefined;
|
|
12
10
|
'line-width'?: undefined;
|
|
13
11
|
'line-dasharray'?: undefined;
|
|
12
|
+
'circle-radius'?: undefined;
|
|
13
|
+
'circle-color'?: undefined;
|
|
14
|
+
'circle-stroke-color'?: undefined;
|
|
15
|
+
'circle-stroke-width'?: undefined;
|
|
14
16
|
'circle-opacity'?: undefined;
|
|
15
17
|
};
|
|
16
18
|
layout?: undefined;
|
|
@@ -18,18 +20,23 @@ declare function featureEditorStyle(): ({
|
|
|
18
20
|
id: string;
|
|
19
21
|
type: string;
|
|
20
22
|
filter: (string | string[])[];
|
|
23
|
+
layout: {
|
|
24
|
+
'line-cap': string;
|
|
25
|
+
'line-join': string;
|
|
26
|
+
};
|
|
21
27
|
paint: {
|
|
22
|
-
'
|
|
23
|
-
'
|
|
28
|
+
'line-color': string;
|
|
29
|
+
'line-width': number;
|
|
24
30
|
'fill-color'?: undefined;
|
|
25
31
|
'fill-outline-color'?: undefined;
|
|
26
32
|
'fill-opacity'?: undefined;
|
|
27
|
-
'line-color'?: undefined;
|
|
28
|
-
'line-width'?: undefined;
|
|
29
33
|
'line-dasharray'?: undefined;
|
|
34
|
+
'circle-radius'?: undefined;
|
|
35
|
+
'circle-color'?: undefined;
|
|
36
|
+
'circle-stroke-color'?: undefined;
|
|
37
|
+
'circle-stroke-width'?: undefined;
|
|
30
38
|
'circle-opacity'?: undefined;
|
|
31
39
|
};
|
|
32
|
-
layout?: undefined;
|
|
33
40
|
} | {
|
|
34
41
|
id: string;
|
|
35
42
|
type: string;
|
|
@@ -40,34 +47,53 @@ declare function featureEditorStyle(): ({
|
|
|
40
47
|
};
|
|
41
48
|
paint: {
|
|
42
49
|
'line-color': string;
|
|
50
|
+
'line-dasharray': number[];
|
|
43
51
|
'line-width': number;
|
|
44
52
|
'fill-color'?: undefined;
|
|
45
53
|
'fill-outline-color'?: undefined;
|
|
46
54
|
'fill-opacity'?: undefined;
|
|
47
55
|
'circle-radius'?: undefined;
|
|
48
56
|
'circle-color'?: undefined;
|
|
49
|
-
'
|
|
57
|
+
'circle-stroke-color'?: undefined;
|
|
58
|
+
'circle-stroke-width'?: undefined;
|
|
50
59
|
'circle-opacity'?: undefined;
|
|
51
60
|
};
|
|
52
61
|
} | {
|
|
53
62
|
id: string;
|
|
54
63
|
type: string;
|
|
55
64
|
filter: (string | string[])[];
|
|
56
|
-
|
|
57
|
-
'
|
|
58
|
-
'
|
|
65
|
+
paint: {
|
|
66
|
+
'circle-radius': number;
|
|
67
|
+
'circle-color': string;
|
|
68
|
+
'circle-stroke-color': string;
|
|
69
|
+
'circle-stroke-width': number;
|
|
70
|
+
'fill-color'?: undefined;
|
|
71
|
+
'fill-outline-color'?: undefined;
|
|
72
|
+
'fill-opacity'?: undefined;
|
|
73
|
+
'line-color'?: undefined;
|
|
74
|
+
'line-width'?: undefined;
|
|
75
|
+
'line-dasharray'?: undefined;
|
|
76
|
+
'circle-opacity'?: undefined;
|
|
59
77
|
};
|
|
78
|
+
layout?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
id: string;
|
|
81
|
+
type: string;
|
|
82
|
+
filter: (string | string[])[];
|
|
60
83
|
paint: {
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'line-width': number;
|
|
84
|
+
'circle-radius': number;
|
|
85
|
+
'circle-color': string;
|
|
64
86
|
'fill-color'?: undefined;
|
|
65
87
|
'fill-outline-color'?: undefined;
|
|
66
88
|
'fill-opacity'?: undefined;
|
|
67
|
-
'
|
|
68
|
-
'
|
|
89
|
+
'line-color'?: undefined;
|
|
90
|
+
'line-width'?: undefined;
|
|
91
|
+
'line-dasharray'?: undefined;
|
|
92
|
+
'circle-stroke-color'?: undefined;
|
|
93
|
+
'circle-stroke-width'?: undefined;
|
|
69
94
|
'circle-opacity'?: undefined;
|
|
70
95
|
};
|
|
96
|
+
layout?: undefined;
|
|
71
97
|
} | {
|
|
72
98
|
id: string;
|
|
73
99
|
type: string;
|
|
@@ -82,6 +108,8 @@ declare function featureEditorStyle(): ({
|
|
|
82
108
|
'line-color'?: undefined;
|
|
83
109
|
'line-width'?: undefined;
|
|
84
110
|
'line-dasharray'?: undefined;
|
|
111
|
+
'circle-stroke-color'?: undefined;
|
|
112
|
+
'circle-stroke-width'?: undefined;
|
|
85
113
|
};
|
|
86
114
|
layout?: undefined;
|
|
87
115
|
})[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeatureCollection } from '
|
|
1
|
+
import { FeatureCollection } from 'geojson';
|
|
2
2
|
export interface useGpxProps {
|
|
3
3
|
/**
|
|
4
4
|
* a string containing GPX data that is supposed to be parsed and converted to GeoJSON by this hook
|
|
@@ -16,7 +16,7 @@ export interface MetadataType {
|
|
|
16
16
|
*/
|
|
17
17
|
declare const useGpx: {
|
|
18
18
|
(props: useGpxProps): {
|
|
19
|
-
geojson: FeatureCollection<import("
|
|
19
|
+
geojson: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties> | undefined;
|
|
20
20
|
metadata: MetadataType[];
|
|
21
21
|
};
|
|
22
22
|
defaultProps: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMapType } from './useMap';
|
|
2
2
|
import { GeoJSONSourceSpecification, LayerSpecification, MapMouseEvent, Style, MapEventType, Map, FilterSpecification } from 'maplibre-gl';
|
|
3
3
|
import MapLibreGlWrapper from '../components/MapLibreMap/lib/MapLibreGlWrapper';
|
|
4
|
-
import {
|
|
4
|
+
import { Feature, FeatureCollection, GeoJsonObject } from 'geojson';
|
|
5
5
|
type getLayerType = Style['getLayer'];
|
|
6
6
|
type useLayerType = {
|
|
7
7
|
map: MapLibreGlWrapper | undefined;
|
|
@@ -11,7 +11,7 @@ type useLayerType = {
|
|
|
11
11
|
mapHook: useMapType;
|
|
12
12
|
};
|
|
13
13
|
export type MapEventHandler = (ev: MapMouseEvent & {
|
|
14
|
-
features?:
|
|
14
|
+
features?: Feature[] | undefined;
|
|
15
15
|
} & Record<string, unknown>) => void;
|
|
16
16
|
export interface useLayerProps {
|
|
17
17
|
mapId?: string;
|
|
@@ -19,7 +19,7 @@ export interface useLayerProps {
|
|
|
19
19
|
idPrefix?: string;
|
|
20
20
|
insertBeforeLayer?: string;
|
|
21
21
|
insertBeforeFirstSymbolLayer?: boolean;
|
|
22
|
-
geojson?:
|
|
22
|
+
geojson?: GeoJsonObject | Feature | FeatureCollection;
|
|
23
23
|
options: Partial<LayerSpecification & {
|
|
24
24
|
source?: GeoJSONSourceSpecification | string;
|
|
25
25
|
id?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Feature } from 'geojson';
|
|
2
3
|
export interface LayerHoverPopupProps {
|
|
3
4
|
/**
|
|
4
5
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -8,7 +9,7 @@ export interface LayerHoverPopupProps {
|
|
|
8
9
|
* Id of an existing layer in the mapLibre instance this event will be registered to
|
|
9
10
|
*/
|
|
10
11
|
layerId?: string;
|
|
11
|
-
getPopupContent: (feature:
|
|
12
|
+
getPopupContent: (feature: Feature) => string;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* useLayerHoverPopup hook registers a mouseenter event to display feature properties in a MapLibre popup if a feature on the configured layer is hovered
|
|
@@ -28,6 +28,7 @@ export { default as GeoJsonContext } from './components/MlGpxViewer/util/GeoJson
|
|
|
28
28
|
export { default as MlShareMapState } from './components/MlShareMapState/MlShareMapState';
|
|
29
29
|
export { default as MlSpatialElevationProfile } from './components/MlSpatialElevationProfile/MlSpatialElevationProfile';
|
|
30
30
|
export { default as MlVectorTileLayer } from './components/MlVectorTileLayer/MlVectorTileLayer';
|
|
31
|
+
export { default as MlOgcApiFeatures } from './components/MlOgcApiFeatures/MlOgcApiFeatures';
|
|
31
32
|
export { default as MlWmsFeatureInfoPopup } from './components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup';
|
|
32
33
|
export { default as MlWmsLayer } from './components/MlWmsLayer/MlWmsLayer';
|
|
33
34
|
export { default as MlWmsLoader } from './components/MlWmsLoader/MlWmsLoader';
|
|
@@ -81,8 +82,45 @@ export { default as SelectStyleButton } from './ui_components/SelectStyleButton/
|
|
|
81
82
|
export { default as SelectStylePopup } from './ui_components/SelectStyleButton/SelectStylePopup';
|
|
82
83
|
export { default as ConfirmDialog } from './ui_components/ConfirmDialog';
|
|
83
84
|
export { default as SpeedDial } from './ui_components/SpeedDial/SpeedDial';
|
|
85
|
+
export { default as LayerTree } from './ui_components/LayerTree/LayerTree';
|
|
86
|
+
export { default as LayerOnMap } from './ui_components/LayerTree/LayerOnMap';
|
|
87
|
+
export { default as LayerTreeListItem } from './ui_components/LayerTree/LayerTreeListItem';
|
|
84
88
|
export { default as GruvboxStyle } from './omt_styles/gruvbox';
|
|
85
89
|
export { default as MedievalKingdomStyle } from './omt_styles/medieval_kingdom';
|
|
86
90
|
export { default as MonokaiStyle } from './omt_styles/monokai';
|
|
87
91
|
export { default as OceanicNextStyle } from './omt_styles/oceanic_next';
|
|
88
92
|
export { default as SolarizedStyle } from './omt_styles/solarized';
|
|
93
|
+
declare const MapStore: {
|
|
94
|
+
store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
95
|
+
mapConfig: import("./stores/map.store").MapState;
|
|
96
|
+
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
97
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
98
|
+
mapConfig: import("./stores/map.store").MapState;
|
|
99
|
+
}, undefined, import("redux").UnknownAction>;
|
|
100
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
101
|
+
setMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
102
|
+
key: string;
|
|
103
|
+
mapConfig: import("./stores/map.store").MapConfig;
|
|
104
|
+
}, "mapConfig/setMapConfig">;
|
|
105
|
+
removeMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
106
|
+
key: string;
|
|
107
|
+
}, "mapConfig/removeMapConfig">;
|
|
108
|
+
setLayerInMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
109
|
+
mapConfigKey: string;
|
|
110
|
+
layer: import("./stores/map.store").LayerConfig;
|
|
111
|
+
}, "mapConfig/setLayerInMapConfig">;
|
|
112
|
+
removeLayerFromMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
113
|
+
mapConfigKey: string;
|
|
114
|
+
layerUuid: string;
|
|
115
|
+
}, "mapConfig/removeLayerFromMapConfig">;
|
|
116
|
+
updateLayerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
117
|
+
mapConfigKey: string;
|
|
118
|
+
newOrder: import("./stores/map.store").LayerOrderItem[];
|
|
119
|
+
}, "mapConfig/updateLayerOrder">;
|
|
120
|
+
setMasterVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
121
|
+
mapConfigKey: string;
|
|
122
|
+
layerId: string;
|
|
123
|
+
masterVisible: boolean;
|
|
124
|
+
}, "mapConfig/setMasterVisible">;
|
|
125
|
+
};
|
|
126
|
+
export { MapStore };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
-
import { FeatureCollection } from '
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import * as csv2geojsonType from './csv2geojson';
|
|
4
4
|
declare function convertCsv(filename: string, options: csv2geojsonType.csvOptions): Promise<FeatureCollection>;
|
|
5
5
|
declare const CSVProtocolHandler: (params: RequestParameters) => Promise<{
|
|
6
|
-
data: FeatureCollection<import("
|
|
6
|
+
data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
7
7
|
}>;
|
|
8
8
|
export { CSVProtocolHandler, convertCsv };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
-
import { FeatureCollection
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import osm2geojson from 'osm2geojson-lite';
|
|
4
4
|
declare function convertOSM(params: {
|
|
5
5
|
filename: string;
|
|
6
6
|
options: osm2geojson.Options;
|
|
7
7
|
}): Promise<FeatureCollection>;
|
|
8
8
|
declare const OSMProtocolHandler: (params: RequestParameters) => Promise<{
|
|
9
|
-
data: FeatureCollection<Geometry
|
|
9
|
+
data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
10
10
|
}>;
|
|
11
11
|
export { OSMProtocolHandler, convertOSM };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
-
import { FeatureCollection
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
3
|
declare function convertTopojson(params: {
|
|
4
4
|
filename: string;
|
|
5
5
|
}): Promise<FeatureCollection>;
|
|
6
6
|
declare const TopojsonProtocolHandler: (params: RequestParameters) => Promise<{
|
|
7
|
-
data: FeatureCollection<Geometry
|
|
7
|
+
data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
8
8
|
}>;
|
|
9
9
|
export { TopojsonProtocolHandler, convertTopojson };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
-
import { FeatureCollection
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
3
|
declare function convertXML(params: {
|
|
4
4
|
filename: string;
|
|
5
5
|
protocolId: string;
|
|
6
6
|
}): Promise<FeatureCollection>;
|
|
7
7
|
declare const XMLProtocolHandler: (params: RequestParameters) => Promise<{
|
|
8
|
-
data: FeatureCollection<Geometry
|
|
8
|
+
data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
9
9
|
}>;
|
|
10
10
|
export { XMLProtocolHandler, convertXML };
|