@opengeoweb/core 12.7.0 → 12.8.0
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/index.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWin
|
|
|
7
7
|
import i18n from 'i18next';
|
|
8
8
|
import { useTranslation, I18nextProvider } from 'react-i18next';
|
|
9
9
|
import { TIMESLIDER_NAMESPACE, timesliderTranslations, defaultTimeSpan, SpeedButton, TimeStepButton, AnimationLengthButton, AnimationLength, TimeSpanButton, secondsPerPxFromCanvasWidth, getNewCenterOfFixedPointZoom, OptionsMenuButton, PlayButton, defaultTimeStep, BackwardForwardStepButton, AutoUpdateButton, NowButton, handleSetNowEvent, TimeSliderButtons, TimeSliderCurrentTimeBox, TimeSliderLegend, onsetNewDateDebounced, defaultSecondsPerPx, moveSelectedTimePx, TimeSlider, getFilteredTime, ControlButtons, OptionsMenu, TimeSliderClock } from '@opengeoweb/timeslider';
|
|
10
|
-
import { webmapReactTranslations, WEBMAP_REACT_NAMESPACE, webmapTranslations, WEBMAP_NAMESPACE, LayerInfoButton, LayerInfoDialog, MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, LegendDialog, LegendButton, MapContext, emptyGeoJSON,
|
|
10
|
+
import { webmapReactTranslations, WEBMAP_REACT_NAMESPACE, webmapTranslations, WEBMAP_NAMESPACE, LayerInfoButton, LayerInfoDialog, MapControlButton, MapDimensionSelect, dimensionConfig, DimensionSelectDialog, DimensionSelectButton, LegendDialog, LegendButton, MapContext, emptyGeoJSON, MapFeatureClass, setMapCenter, OpenLayersFeatureLayer, OpenLayersMapDraw, getIsInsideAcceptanceTime, OpenLayersLayer, useSetIntervalWhenVisible, openLayersGetMapImageStore, TimeContext, OpenLayersMapView, WMSLayer, genericOpenLayersFeatureStyle, OpenLayersGetFeatureInfo, MapControls, OpenLayersZoomControl, getLayerUpdateInfo, publicLayers } from '@opengeoweb/webmap-react';
|
|
11
11
|
import { useDispatch, useSelector, connect, useStore, Provider } from 'react-redux';
|
|
12
12
|
import { ReactSortable } from 'react-sortablejs';
|
|
13
13
|
import Sortable from 'sortablejs';
|
|
@@ -2480,7 +2480,7 @@ var LayerRow = styled(LayerRowUnstyled)(function (_ref9) {
|
|
|
2480
2480
|
backgroundColor: isEnabled ? theme.palette.geowebColors.layerManager.tableRowDefaultCardContainer.fill : theme.palette.geowebColors.layerManager.tableRowDisabledCardContainer.fill,
|
|
2481
2481
|
border: '1px solid',
|
|
2482
2482
|
borderColor: isEnabled ? theme.palette.geowebColors.layerManager.tableRowDefaultCardContainer.borderColor : theme.palette.geowebColors.layerManager.tableRowDisabledCardContainer.borderColor,
|
|
2483
|
-
borderRadius:
|
|
2483
|
+
borderRadius: theme.shape.borderRadius,
|
|
2484
2484
|
marginBottom: theme.spacing(0.25),
|
|
2485
2485
|
minHeight: '32px'
|
|
2486
2486
|
}
|
|
@@ -3016,7 +3016,8 @@ var ActivateLayerConnect = function ActivateLayerConnect(_ref) {
|
|
|
3016
3016
|
} else if (thisLayerHasAutoTimestep) {
|
|
3017
3017
|
dispatch(mapActions.setAutoTimestepLayerId({
|
|
3018
3018
|
mapId: mapId,
|
|
3019
|
-
autoTimestepLayerId: undefined
|
|
3019
|
+
autoTimestepLayerId: undefined,
|
|
3020
|
+
origin: mapEnums.MapActionOrigin.map
|
|
3020
3021
|
}));
|
|
3021
3022
|
if (isTimestepAuto) {
|
|
3022
3023
|
dispatch(mapActions.toggleTimestepAuto({
|
|
@@ -3039,7 +3040,8 @@ var ActivateLayerConnect = function ActivateLayerConnect(_ref) {
|
|
|
3039
3040
|
} else if (thisLayerHasAutoUpdate) {
|
|
3040
3041
|
dispatch(mapActions.setAutoUpdateLayerId({
|
|
3041
3042
|
mapId: mapId,
|
|
3042
|
-
autoUpdateLayerId: undefined
|
|
3043
|
+
autoUpdateLayerId: undefined,
|
|
3044
|
+
origin: mapEnums.MapActionOrigin.map
|
|
3043
3045
|
}));
|
|
3044
3046
|
}
|
|
3045
3047
|
}
|
|
@@ -3055,7 +3057,8 @@ var ActivateLayerConnect = function ActivateLayerConnect(_ref) {
|
|
|
3055
3057
|
function handleAutoUpdateClick() {
|
|
3056
3058
|
dispatch(mapActions.setAutoUpdateLayerId({
|
|
3057
3059
|
mapId: mapId,
|
|
3058
|
-
autoUpdateLayerId: layerId
|
|
3060
|
+
autoUpdateLayerId: layerId,
|
|
3061
|
+
origin: mapEnums.MapActionOrigin.map
|
|
3059
3062
|
}));
|
|
3060
3063
|
if (thisLayerHasAutoTimestep) {
|
|
3061
3064
|
dispatch(mapActions.setAutoTimestepLayerId({
|
|
@@ -3086,7 +3089,8 @@ var ActivateLayerConnect = function ActivateLayerConnect(_ref) {
|
|
|
3086
3089
|
function handleAutoTimestepClick() {
|
|
3087
3090
|
dispatch(mapActions.setAutoTimestepLayerId({
|
|
3088
3091
|
mapId: mapId,
|
|
3089
|
-
autoTimestepLayerId: layerId
|
|
3092
|
+
autoTimestepLayerId: layerId,
|
|
3093
|
+
origin: mapEnums.MapActionOrigin.map
|
|
3090
3094
|
}));
|
|
3091
3095
|
if (thisLayerHasAutoUpdate) {
|
|
3092
3096
|
dispatch(mapActions.setAutoUpdateLayerId({
|
|
@@ -7123,43 +7127,6 @@ var LocationSearch = function LocationSearch(_ref) {
|
|
|
7123
7127
|
* Copyright 2025 - Finnish Meteorological Institute (FMI)
|
|
7124
7128
|
* Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
|
|
7125
7129
|
* */
|
|
7126
|
-
var myLocationDrawFunction = function myLocationDrawFunction(args) {
|
|
7127
|
-
var ctx = args.context,
|
|
7128
|
-
coord = args.coord;
|
|
7129
|
-
// Draw outer circle
|
|
7130
|
-
ctx.strokeStyle = '#fff';
|
|
7131
|
-
ctx.fillStyle = '#fff';
|
|
7132
|
-
ctx.shadowColor = '#00000080';
|
|
7133
|
-
ctx.shadowBlur = 4;
|
|
7134
|
-
ctx.beginPath();
|
|
7135
|
-
ctx.arc(coord.x, coord.y, 14, 0, 2 * Math.PI);
|
|
7136
|
-
ctx.fill();
|
|
7137
|
-
ctx.shadowBlur = 0;
|
|
7138
|
-
// Draw inner circle
|
|
7139
|
-
ctx.fillStyle = '#186dff';
|
|
7140
|
-
ctx.beginPath();
|
|
7141
|
-
ctx.arc(coord.x, coord.y, 10, 0, 2 * Math.PI);
|
|
7142
|
-
ctx.fill();
|
|
7143
|
-
};
|
|
7144
|
-
var selectedLocationDrawFunction = function selectedLocationDrawFunction(args) {
|
|
7145
|
-
var ctx = args.context,
|
|
7146
|
-
coord = args.coord;
|
|
7147
|
-
ctx.strokeStyle = '#051039';
|
|
7148
|
-
ctx.fillStyle = '#051039';
|
|
7149
|
-
ctx.beginPath();
|
|
7150
|
-
var topRadius = 7;
|
|
7151
|
-
var topHeight = 2 * topRadius;
|
|
7152
|
-
ctx.arc(coord.x, coord.y - topHeight, topRadius, Math.PI, Math.PI * 2);
|
|
7153
|
-
ctx.bezierCurveTo(coord.x + topRadius, coord.y - topHeight, coord.x + topRadius / 1.6, coord.y - topRadius, coord.x, coord.y);
|
|
7154
|
-
ctx.bezierCurveTo(coord.x, coord.y, coord.x - topRadius / 1.6, coord.y - topRadius, coord.x - topRadius, coord.y - topHeight);
|
|
7155
|
-
ctx.stroke();
|
|
7156
|
-
ctx.fill();
|
|
7157
|
-
/* Fill center circle */
|
|
7158
|
-
ctx.fillStyle = '#FFF';
|
|
7159
|
-
ctx.beginPath();
|
|
7160
|
-
ctx.arc(coord.x, coord.y - topHeight, topRadius / 2.5, Math.PI * 2, 0);
|
|
7161
|
-
ctx.fill();
|
|
7162
|
-
};
|
|
7163
7130
|
var geometryStyling = {
|
|
7164
7131
|
fill: '#FF7800',
|
|
7165
7132
|
'fill-opacity': 0.25,
|
|
@@ -7167,7 +7134,7 @@ var geometryStyling = {
|
|
|
7167
7134
|
'stroke-opacity': 1,
|
|
7168
7135
|
'stroke-width': 4
|
|
7169
7136
|
};
|
|
7170
|
-
var makeGeoJSONFeatureFromLocation = function makeGeoJSONFeatureFromLocation(location,
|
|
7137
|
+
var makeGeoJSONFeatureFromLocation = function makeGeoJSONFeatureFromLocation(location, mapFeatureClass, t) {
|
|
7171
7138
|
var _location$geometry;
|
|
7172
7139
|
var collection = {
|
|
7173
7140
|
type: 'FeatureCollection',
|
|
@@ -7177,7 +7144,6 @@ var makeGeoJSONFeatureFromLocation = function makeGeoJSONFeatureFromLocation(loc
|
|
|
7177
7144
|
var geometry = Object.assign({}, location.geometry, {
|
|
7178
7145
|
properties: Object.assign({}, geometryStyling, {
|
|
7179
7146
|
name: name,
|
|
7180
|
-
hoverDrawFunctionId: hoverDrawFunctionId,
|
|
7181
7147
|
mapFeatureClass: mapFeatureClass,
|
|
7182
7148
|
showNameOnHover: true
|
|
7183
7149
|
})
|
|
@@ -7186,8 +7152,6 @@ var makeGeoJSONFeatureFromLocation = function makeGeoJSONFeatureFromLocation(loc
|
|
|
7186
7152
|
type: 'Feature',
|
|
7187
7153
|
properties: {
|
|
7188
7154
|
name: name,
|
|
7189
|
-
drawFunctionId: drawFunctionId,
|
|
7190
|
-
hoverDrawFunctionId: hoverDrawFunctionId,
|
|
7191
7155
|
mapFeatureClass: mapFeatureClass,
|
|
7192
7156
|
showNameOnHover: true
|
|
7193
7157
|
},
|
|
@@ -7206,53 +7170,7 @@ var makeGeoJSONFeatureFromLocation = function makeGeoJSONFeatureFromLocation(loc
|
|
|
7206
7170
|
}
|
|
7207
7171
|
return collection;
|
|
7208
7172
|
};
|
|
7209
|
-
var
|
|
7210
|
-
var lines = text.split('\n');
|
|
7211
|
-
for (var i = 0; i < lines.length; i += 1) {
|
|
7212
|
-
ctx.fillText(lines[i], x, y + i * lineheight);
|
|
7213
|
-
}
|
|
7214
|
-
};
|
|
7215
|
-
var roundRect = function roundRect(ctx, w, h, x, y, radius) {
|
|
7216
|
-
if (radius === void 0) {
|
|
7217
|
-
radius = 2;
|
|
7218
|
-
}
|
|
7219
|
-
var r = x + w;
|
|
7220
|
-
var b = y + h;
|
|
7221
|
-
ctx.beginPath();
|
|
7222
|
-
ctx.moveTo(x + radius, y);
|
|
7223
|
-
ctx.lineTo(r - radius, y);
|
|
7224
|
-
ctx.quadraticCurveTo(r, y, r, y + radius);
|
|
7225
|
-
ctx.lineTo(r, y + h - radius);
|
|
7226
|
-
ctx.quadraticCurveTo(r, b, r - radius, b);
|
|
7227
|
-
ctx.lineTo(x + radius, b);
|
|
7228
|
-
ctx.quadraticCurveTo(x, b, x, b - radius);
|
|
7229
|
-
ctx.lineTo(x, y + radius);
|
|
7230
|
-
ctx.quadraticCurveTo(x, y, x + radius, y);
|
|
7231
|
-
ctx.stroke();
|
|
7232
|
-
ctx.fill();
|
|
7233
|
-
};
|
|
7234
|
-
var hoverDrawFunction = function hoverDrawFunction(args) {
|
|
7235
|
-
var ctx = args.context,
|
|
7236
|
-
coord = args.coord,
|
|
7237
|
-
feature = args.feature;
|
|
7238
|
-
var fontSize = 16;
|
|
7239
|
-
var padding = 20;
|
|
7240
|
-
// eslint-disable-next-line no-param-reassign
|
|
7241
|
-
ctx.font = fontSize + "px Roboto";
|
|
7242
|
-
var x = coord.x,
|
|
7243
|
-
y = coord.y;
|
|
7244
|
-
ctx.strokeStyle = '#000';
|
|
7245
|
-
ctx.fillStyle = '#000';
|
|
7246
|
-
roundRect(ctx, ctx.measureText(feature.properties.name).width + padding, fontSize + padding, x - padding * 0.5 - ctx.measureText(feature.properties.name).width * 0.5, y + padding);
|
|
7247
|
-
// eslint-disable-next-line no-param-reassign
|
|
7248
|
-
ctx.fillStyle = '#FFF';
|
|
7249
|
-
// eslint-disable-next-line no-param-reassign
|
|
7250
|
-
ctx.textAlign = 'left';
|
|
7251
|
-
if (feature && feature.properties) {
|
|
7252
|
-
fitText(ctx, feature.properties.name, x - ctx.measureText(feature.properties.name).width * 0.5, y + padding * 2, fontSize);
|
|
7253
|
-
}
|
|
7254
|
-
};
|
|
7255
|
-
var useDrawOnMap = function useDrawOnMap(mapId, drawFunction) {
|
|
7173
|
+
var useDrawOnMap = function useDrawOnMap(mapId) {
|
|
7256
7174
|
var dispatch = useDispatch();
|
|
7257
7175
|
var _useCoreTranslation = useCoreTranslation(),
|
|
7258
7176
|
t = _useCoreTranslation.t;
|
|
@@ -7283,16 +7201,14 @@ var useDrawOnMap = function useDrawOnMap(mapId, drawFunction) {
|
|
|
7283
7201
|
}));
|
|
7284
7202
|
}
|
|
7285
7203
|
}, [dispatch, layerId, mapId, shouldAddLayer]);
|
|
7286
|
-
var drawFunctionId = React__default.useRef(registerDrawFunction(drawFunction)).current;
|
|
7287
|
-
var hoverDrawFunctionId = React__default.useRef(registerDrawFunction(hoverDrawFunction)).current;
|
|
7288
7204
|
var updateGeoJSON = React__default.useCallback(function (location) {
|
|
7289
7205
|
var mapFeatureClass = (location == null ? void 0 : location.source) === 'MyMapLocation' ? MapFeatureClass.MyLocation : MapFeatureClass.GenericMarker;
|
|
7290
|
-
var geojson = location ? makeGeoJSONFeatureFromLocation(location,
|
|
7206
|
+
var geojson = location ? makeGeoJSONFeatureFromLocation(location, mapFeatureClass, t) : emptyGeoJSON;
|
|
7291
7207
|
dispatch(layerActions.updateFeature({
|
|
7292
7208
|
layerId: layerId,
|
|
7293
7209
|
geojson: geojson
|
|
7294
7210
|
}));
|
|
7295
|
-
}, [dispatch,
|
|
7211
|
+
}, [dispatch, layerId, t]);
|
|
7296
7212
|
var zoomToFeature = React__default.useCallback(function (location) {
|
|
7297
7213
|
if (map) {
|
|
7298
7214
|
setMapCenter(map, location.lon, location.lat);
|
|
@@ -7313,9 +7229,9 @@ var LocationSearchConnect = function LocationSearchConnect(_ref) {
|
|
|
7313
7229
|
var dialogType = uiTypes.DialogTypes.Search + "-" + mapId;
|
|
7314
7230
|
var _useSetupDialog = useSetupDialog(dialogType),
|
|
7315
7231
|
isDialogOpen = _useSetupDialog.isDialogOpen;
|
|
7316
|
-
var _useDrawOnMap = useDrawOnMap(mapId
|
|
7232
|
+
var _useDrawOnMap = useDrawOnMap(mapId),
|
|
7317
7233
|
updateMapPin = _useDrawOnMap[0];
|
|
7318
|
-
var _useDrawOnMap2 = useDrawOnMap(mapId
|
|
7234
|
+
var _useDrawOnMap2 = useDrawOnMap(mapId),
|
|
7319
7235
|
updateMyLocation = _useDrawOnMap2[0];
|
|
7320
7236
|
var mapLayers = useSelector(function (store) {
|
|
7321
7237
|
return layerSelectors.getLayersByMapId(store, mapId);
|
|
@@ -7699,7 +7615,9 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
7699
7615
|
}, [warningDialogFeatures]);
|
|
7700
7616
|
var linkedFeaturesFromState = useSelector(function (store) {
|
|
7701
7617
|
var _store$syncGroups;
|
|
7702
|
-
return genericSelectors.selectLinkedFeatures((_store$syncGroups = store.syncGroups) == null ? void 0 : _store$syncGroups.linkedState,
|
|
7618
|
+
return genericSelectors.selectLinkedFeatures((_store$syncGroups = store.syncGroups) == null ? void 0 : _store$syncGroups.linkedState, {
|
|
7619
|
+
mapId: mapId
|
|
7620
|
+
});
|
|
7703
7621
|
});
|
|
7704
7622
|
var filteredLinkedFeaturesFromState = React.useMemo(function () {
|
|
7705
7623
|
return linkedFeaturesFromState.filter(function (feature) {
|
|
@@ -7708,7 +7626,9 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
7708
7626
|
}, [linkedFeaturesFromState, warningDialogOriginalIds]);
|
|
7709
7627
|
var linkedFormFeaturesFromState = useSelector(function (store) {
|
|
7710
7628
|
var _store$syncGroups2;
|
|
7711
|
-
return genericSelectors.selectLinkedFormFeatures((_store$syncGroups2 = store.syncGroups) == null ? void 0 : _store$syncGroups2.linkedState,
|
|
7629
|
+
return genericSelectors.selectLinkedFormFeatures((_store$syncGroups2 = store.syncGroups) == null ? void 0 : _store$syncGroups2.linkedState, {
|
|
7630
|
+
mapId: mapId
|
|
7631
|
+
});
|
|
7712
7632
|
});
|
|
7713
7633
|
var linkedFeatures = React.useMemo(function () {
|
|
7714
7634
|
return {
|
|
@@ -7809,9 +7729,10 @@ var OlMapViewConnect = function OlMapViewConnect(_ref) {
|
|
|
7809
7729
|
selectedFeatureId: selectedFeatureId
|
|
7810
7730
|
}
|
|
7811
7731
|
}));
|
|
7812
|
-
selectedMapIds.
|
|
7732
|
+
var linkedMapIds = selectedMapIds.length > 0 ? selectedMapIds : [mapId];
|
|
7733
|
+
linkedMapIds.forEach(function (id) {
|
|
7813
7734
|
dispatch(mapActions.setMapPinLocation({
|
|
7814
|
-
mapId:
|
|
7735
|
+
mapId: id,
|
|
7815
7736
|
mapPinLocation: mapPinLocation
|
|
7816
7737
|
}));
|
|
7817
7738
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.8.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/timeslider": "12.
|
|
13
|
+
"@opengeoweb/store": "12.8.0",
|
|
14
|
+
"@opengeoweb/timeslider": "12.8.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "12.
|
|
17
|
-
"@opengeoweb/webmap": "12.
|
|
18
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/webmap-react": "12.8.0",
|
|
17
|
+
"@opengeoweb/webmap": "12.8.0",
|
|
18
|
+
"@opengeoweb/theme": "12.8.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "12.
|
|
20
|
+
"@opengeoweb/layer-select": "12.8.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.0.1",
|
|
26
|
-
"@opengeoweb/snackbar": "12.
|
|
26
|
+
"@opengeoweb/snackbar": "12.8.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.69.2",
|
|
35
|
-
"@opengeoweb/api": "12.
|
|
35
|
+
"@opengeoweb/api": "12.8.0",
|
|
36
|
+
"@types/geojson": "^7946.0.14"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"react": "18",
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"module": "./index.esm.js",
|
|
43
44
|
"type": "module",
|
|
44
45
|
"main": "./index.esm.js",
|
|
45
|
-
"types": "./index.
|
|
46
|
+
"types": "./index.d.ts"
|
|
46
47
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { MapDrawDrawFunctionArgs } from '@opengeoweb/webmap-react';
|
|
2
1
|
import { GeoJsonProperties } from 'geojson';
|
|
3
2
|
import { LocationDetail } from './types';
|
|
4
|
-
export declare const myLocationDrawFunction: (args: MapDrawDrawFunctionArgs) => void;
|
|
5
|
-
export declare const selectedLocationDrawFunction: (args: MapDrawDrawFunctionArgs) => void;
|
|
6
3
|
export declare const geometryStyling: GeoJsonProperties;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const useDrawOnMap: (mapId: string, drawFunction: (args: MapDrawDrawFunctionArgs) => void) => [(location?: LocationDetail) => void];
|
|
4
|
+
export declare const useDrawOnMap: (mapId: string) => [(location?: LocationDetail) => void];
|
|
@@ -6,7 +6,7 @@ export declare const mapPresetRadar: {
|
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
style: string;
|
|
8
8
|
id: string;
|
|
9
|
-
layerType: import("
|
|
9
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
10
10
|
}[];
|
|
11
11
|
proj: {
|
|
12
12
|
bbox: {
|
|
@@ -23,7 +23,7 @@ export declare const mapPresetObsTA: {
|
|
|
23
23
|
service: string;
|
|
24
24
|
name: string;
|
|
25
25
|
id: string;
|
|
26
|
-
layerType: import("
|
|
26
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
27
27
|
}[];
|
|
28
28
|
proj: {
|
|
29
29
|
bbox: {
|
|
@@ -40,7 +40,7 @@ export declare const mapPresetObsWind: {
|
|
|
40
40
|
service: string;
|
|
41
41
|
name: string;
|
|
42
42
|
id: string;
|
|
43
|
-
layerType: import("
|
|
43
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
44
44
|
}[];
|
|
45
45
|
proj: {
|
|
46
46
|
bbox: {
|
|
@@ -57,7 +57,7 @@ export declare const mapPresetObsPP: {
|
|
|
57
57
|
service: string;
|
|
58
58
|
name: string;
|
|
59
59
|
id: string;
|
|
60
|
-
layerType: import("
|
|
60
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
61
61
|
}[];
|
|
62
62
|
proj: {
|
|
63
63
|
bbox: {
|
|
@@ -74,7 +74,7 @@ export declare const mapPresetObsRH: {
|
|
|
74
74
|
service: string;
|
|
75
75
|
name: string;
|
|
76
76
|
id: string;
|
|
77
|
-
layerType: import("
|
|
77
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
78
78
|
}[];
|
|
79
79
|
proj: {
|
|
80
80
|
bbox: {
|
|
@@ -91,7 +91,7 @@ export declare const mapPresetObsQG: {
|
|
|
91
91
|
service: string;
|
|
92
92
|
name: string;
|
|
93
93
|
id: string;
|
|
94
|
-
layerType: import("
|
|
94
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
95
95
|
}[];
|
|
96
96
|
proj: {
|
|
97
97
|
bbox: {
|
|
@@ -109,7 +109,7 @@ export declare const mapPresetEumetsat: {
|
|
|
109
109
|
name: string;
|
|
110
110
|
enabled: boolean;
|
|
111
111
|
id: string;
|
|
112
|
-
layerType: import("
|
|
112
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
113
113
|
}[];
|
|
114
114
|
proj: {
|
|
115
115
|
bbox: {
|
|
@@ -126,7 +126,7 @@ export declare const mapPresetHarmoniePrecipitationFlux: {
|
|
|
126
126
|
service: string;
|
|
127
127
|
name: string;
|
|
128
128
|
id: string;
|
|
129
|
-
layerType: import("
|
|
129
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
130
130
|
enabled: boolean;
|
|
131
131
|
}[];
|
|
132
132
|
proj: {
|
|
@@ -144,7 +144,7 @@ export declare const mapPresetHarmonieTemperature2m: {
|
|
|
144
144
|
service: string;
|
|
145
145
|
name: string;
|
|
146
146
|
id: string;
|
|
147
|
-
layerType: import("
|
|
147
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
148
148
|
enabled: boolean;
|
|
149
149
|
}[];
|
|
150
150
|
proj: {
|
|
@@ -162,7 +162,7 @@ export declare const mapPresetHarmoniePressureMSL: {
|
|
|
162
162
|
service: string;
|
|
163
163
|
name: string;
|
|
164
164
|
id: string;
|
|
165
|
-
layerType: import("
|
|
165
|
+
layerType: import("@opengeoweb/webmap").LayerType;
|
|
166
166
|
enabled: boolean;
|
|
167
167
|
}[];
|
|
168
168
|
proj: {
|
|
File without changes
|