@opengeoweb/webmap 9.25.3 → 9.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "9.25.3",
3
+ "version": "9.27.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -11,7 +11,8 @@
11
11
  "@opengeoweb/shared": "*",
12
12
  "throttle-debounce": "^5.0.0",
13
13
  "proj4": "^2.9.2",
14
- "lodash": "^4.17.21"
14
+ "lodash": "^4.17.21",
15
+ "i18next": "^23.11.5"
15
16
  },
16
17
  "peerDependencies": {},
17
18
  "module": "./index.esm.js",
@@ -11,24 +11,9 @@ export declare const WMSVersion: {
11
11
  version130: string;
12
12
  };
13
13
  export declare const WMProj4Defs: string[][];
14
- export declare const epsgDescriptionLookup: {
15
- 'EPSG:3411': string;
16
- 'EPSG:3412': string;
17
- 'EPSG:3575': string;
18
- 'EPSG:3785': string;
19
- 'EPSG:3857': string;
20
- 'EPSG:4258': string;
21
- 'EPSG:4326': string;
22
- 'CRS:84': string;
23
- 'EPSG:25831': string;
24
- 'EPSG:25832': string;
25
- 'EPSG:28992': string;
26
- 'EPSG:32661': string;
27
- 'EPSG:3067': string;
28
- };
29
14
  export declare const mapImageStoreLength = 1000;
30
15
  export declare const bgImageStoreLength = 360;
31
16
  export declare const legendImageStoreLength = 500;
32
17
  export declare const EVENT_GETCAPABILITIES_START = "onstartgetcapabilities";
33
18
  export declare const EVENT_GETCAPABILITIES_READY = "onreadygetcapabilities";
34
- export declare const WMJSMAP_LONLAT_EPSGCODE = "EPSG:4326";
19
+ export declare const WMJSMAP_LONLAT_EPSGCODE: "EPSG:4326";
@@ -1,4 +1,5 @@
1
- import type { EPSGCode, TileServerMap, TileSettings } from '../utils';
1
+ import { EPSGCode } from '@opengeoweb/shared';
2
+ import type { TileServerMap, TileSettings } from '../utils';
2
3
  import WMBBOX from './WMBBOX';
3
4
  import WMImageStore from './WMImageStore';
4
5
  export default class WMTileRenderer {
@@ -2,7 +2,6 @@ import type IWMJSMap from './IWMJSMap';
2
2
  import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam } from './WMJSTools';
3
3
  import WMGetServiceFromStore from './WMGetServiceFromStore';
4
4
  import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
5
- import I18n from '../utils/I18n/lang.en';
6
5
  import WMImage from './WMImage';
7
6
  import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
8
7
  import { WMImageEventType } from './WMImageStore';
@@ -17,7 +16,7 @@ export { default as WMBBOX } from './WMBBOX';
17
16
  export type { Bbox } from './WMBBOX';
18
17
  export type { WMProjectionWH } from './WMProjection';
19
18
  export { WMProjection };
20
- export { IWMJSMap, WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, I18n, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, WMJSService, getUriWithParam, wmServiceListener, WMListener, };
19
+ export { IWMJSMap, WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, WMJSService, getUriWithParam, wmServiceListener, WMListener, };
21
20
  export * from './types';
22
21
  export * from './WMTimeTypes';
23
22
  export * from './WMConstants';
@@ -1,2 +1,5 @@
1
+ import webmapTranslations from '../../locales/webmap.json';
1
2
  export * from './components';
2
3
  export * from './utils';
4
+ export { webmapTranslations };
5
+ export { WEBMAP_NAMESPACE } from './utils/i18n';
@@ -0,0 +1,11 @@
1
+ export declare const consoleErrorMessages: {
2
+ noCapabilityElementFound: string;
3
+ noServiceDefined: string;
4
+ noWmsCapabilityElementFound: string;
5
+ noWmsLayerElementFound: string;
6
+ notAvailableMessage: string;
7
+ serviceHasError: string;
8
+ serviceUrlEmpty: string;
9
+ unableToConnectServer: string;
10
+ wmsServiceExceptionCode: string;
11
+ };
@@ -0,0 +1,2 @@
1
+ export declare const WEBMAP_NAMESPACE = "webmap";
2
+ export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
@@ -1,3 +1,4 @@
1
+ import { EPSGCode } from '@opengeoweb/shared';
1
2
  export interface TileSettings {
2
3
  home: string;
3
4
  minLevel: number;
@@ -12,21 +13,8 @@ export interface TileSettings {
12
13
  tileServerFormat?: string;
13
14
  tms?: boolean;
14
15
  }
15
- export declare enum EPSGCode {
16
- EPSG3857 = "EPSG:3857",
17
- EPSG28992 = "EPSG:28992",
18
- TODO_EPSG4326 = "TODO__EPSG:4326",
19
- EPSG3411 = "EPSG:3411",
20
- EPSG32661 = "EPSG:32661",
21
- EPSG54030 = "EPSG:54030",
22
- EPSG4326 = "EPSG:4326",
23
- EPSG4258 = "EPSG:4258",
24
- EPSG3412 = "EPSG:3412",
25
- EPSG3575 = "EPSG:3575",
26
- EPSG3067 = "EPSG:3067"
27
- }
28
16
  export type TileSettingPerProjection = {
29
- [code in EPSGCode]?: TileSettings;
17
+ [key in EPSGCode]?: TileSettings;
30
18
  };
31
19
  export interface Title {
32
20
  title?: string;
@@ -1,387 +0,0 @@
1
- declare const _default: {
2
- delete: {
3
- text: string;
4
- };
5
- delete_selected_flag_tooltip: {
6
- tooltip: string;
7
- };
8
- add_flag_tooltip: {
9
- tooltip: string;
10
- };
11
- are_you_sure: {
12
- text: string;
13
- };
14
- delete_title_confirm: {
15
- text: string;
16
- };
17
- default_selected_flag: {
18
- text: string;
19
- };
20
- selected_flag: {
21
- text: string;
22
- };
23
- add_point_interest_abstract: {
24
- text: string;
25
- };
26
- insert_name: {
27
- text: string;
28
- };
29
- add_point_interest: {
30
- text: string;
31
- };
32
- add: {
33
- text: string;
34
- };
35
- place_search_term: {
36
- text: string;
37
- };
38
- debug_searching_location: {
39
- text: string;
40
- };
41
- debug_searching_sqlite_location: {
42
- text: string;
43
- };
44
- geonames_api_call_failed: {
45
- text: string;
46
- };
47
- geonames_sqlite_call_failed: {
48
- text: string;
49
- };
50
- no_results_search: {
51
- text: string;
52
- };
53
- unable_to_connect_server: {
54
- text: string;
55
- };
56
- unable_to_search: {
57
- text: string;
58
- };
59
- no_urls_in_config: {
60
- text: string;
61
- };
62
- only_alpha_num_allowed: {
63
- text: string;
64
- };
65
- no_search_definition: {
66
- text: string;
67
- };
68
- service_has_error: {
69
- text: string;
70
- };
71
- no_time_dimension_in_layer: {
72
- text: string;
73
- };
74
- no_service_defined: {
75
- text: string;
76
- };
77
- service_url_empty: {
78
- text: string;
79
- };
80
- wms_service_exception_code: {
81
- text: string;
82
- };
83
- unnamed_service: {
84
- text: string;
85
- };
86
- add_layers: {
87
- text: string;
88
- tooltip: string;
89
- };
90
- add_custom_service: {
91
- text: string;
92
- };
93
- properties_for: {
94
- text: string;
95
- };
96
- color_range: {
97
- text: string;
98
- };
99
- reset: {
100
- text: string;
101
- };
102
- apply: {
103
- text: string;
104
- };
105
- min_value: {
106
- text: string;
107
- };
108
- max_value: {
109
- text: string;
110
- };
111
- wms_version: {
112
- text: string;
113
- };
114
- wms_comp_mode: {
115
- text: string;
116
- };
117
- projections: {
118
- text: string;
119
- };
120
- projection: {
121
- text: string;
122
- };
123
- epsg_code: {
124
- text: string;
125
- };
126
- bounding_box: {
127
- text: string;
128
- };
129
- file_metadata: {
130
- text: string;
131
- };
132
- show_file_metadata: {
133
- text: string;
134
- };
135
- download_data_wcs: {
136
- text: string;
137
- };
138
- coordinate_reference_system: {
139
- text: string;
140
- };
141
- area_bounding_box: {
142
- text: string;
143
- };
144
- dimensions: {
145
- text: string;
146
- };
147
- dimension: {
148
- text: string;
149
- };
150
- formats: {
151
- text: string;
152
- };
153
- north: {
154
- text: string;
155
- };
156
- west: {
157
- text: string;
158
- };
159
- east: {
160
- text: string;
161
- };
162
- south: {
163
- text: string;
164
- };
165
- cell_size: {
166
- text: string;
167
- };
168
- x_resolution: {
169
- text: string;
170
- };
171
- y_resolution: {
172
- text: string;
173
- };
174
- raster_size: {
175
- text: string;
176
- };
177
- raster_width: {
178
- text: string;
179
- };
180
- raster_height: {
181
- text: string;
182
- };
183
- format: {
184
- text: string;
185
- };
186
- show: {
187
- text: string;
188
- };
189
- create_permanent_links: {
190
- text: string;
191
- };
192
- please_select_product: {
193
- text: string;
194
- };
195
- no_capability_element_found: {
196
- text: string;
197
- };
198
- no_wms_capability_element_found: {
199
- text: string;
200
- };
201
- no_wms_layer_element_found: {
202
- text: string;
203
- };
204
- settings_and_options: {
205
- tooltip: string;
206
- };
207
- show_time_selection_window: {
208
- text: string;
209
- };
210
- create_animation: {
211
- text: string;
212
- };
213
- create_link: {
214
- text: string;
215
- };
216
- show_debug_information: {
217
- text: string;
218
- };
219
- add_custom_wms_service: {
220
- text: string;
221
- };
222
- undo_zoom_pan_action: {
223
- text: string;
224
- };
225
- redo_zoom_pan_action: {
226
- text: string;
227
- };
228
- abort_loading: {
229
- text: string;
230
- };
231
- about_the_adaguc_viewer: {
232
- text: string;
233
- tooptip: string;
234
- };
235
- about_adaguc: {
236
- text: string;
237
- };
238
- about_adaguc_more_information: {
239
- text: string;
240
- };
241
- layers: {
242
- text: string;
243
- tooltip: string;
244
- };
245
- predefined_areas: {
246
- tooltip: string;
247
- };
248
- basemaps_overlays: {
249
- tooltip: string;
250
- };
251
- add_layers_and_services: {
252
- text: string;
253
- };
254
- add_new_layer: {
255
- tooltip: string;
256
- };
257
- clone_this_layer: {
258
- tooltip: string;
259
- };
260
- remove_this_layer: {
261
- tooltip: string;
262
- };
263
- move_layer_up: {
264
- tooltip: string;
265
- };
266
- move_layer_down: {
267
- tooltip: string;
268
- };
269
- title: {
270
- text: string;
271
- };
272
- layer: {
273
- text: string;
274
- };
275
- type: {
276
- text: string;
277
- };
278
- name: {
279
- text: string;
280
- };
281
- abstract: {
282
- text: string;
283
- };
284
- service: {
285
- text: string;
286
- };
287
- description: {
288
- text: string;
289
- };
290
- no_dimensions_available: {
291
- text: string;
292
- };
293
- load_all: {
294
- text: string;
295
- };
296
- play_animation: {
297
- text: string;
298
- };
299
- stop: {
300
- text: string;
301
- };
302
- start: {
303
- text: string;
304
- };
305
- opacity: {
306
- text: string;
307
- };
308
- zoom_to_this_layer: {
309
- tooltip: string;
310
- };
311
- start_or_stop_animation: {
312
- tooltip: string;
313
- };
314
- reload_this_layer: {
315
- tooltip: string;
316
- };
317
- layer_properties: {
318
- tooltip: string;
319
- };
320
- hide_or_display_layer: {
321
- tooltip: string;
322
- };
323
- select_layer_product_from_service: {
324
- tooltip: string;
325
- };
326
- change_style_layer: {
327
- tooltip: string;
328
- };
329
- available_styles: {
330
- text: string;
331
- };
332
- no_styles_available: {
333
- text: string;
334
- };
335
- default: {
336
- text: string;
337
- };
338
- embed: {
339
- text: string;
340
- };
341
- time_selection: {
342
- text: string;
343
- };
344
- local_time: {
345
- text: string;
346
- };
347
- year: {
348
- text: string;
349
- };
350
- month: {
351
- text: string;
352
- };
353
- day: {
354
- text: string;
355
- };
356
- hour: {
357
- text: string;
358
- };
359
- min: {
360
- text: string;
361
- };
362
- select_layer: {
363
- text: string;
364
- };
365
- select_dimension: {
366
- text: string;
367
- };
368
- start_at: {
369
- text: string;
370
- };
371
- number_of_steps: {
372
- text: string;
373
- };
374
- delay_ms: {
375
- text: string;
376
- };
377
- enter_wms_version_url: {
378
- text: string;
379
- };
380
- enter_search_term: {
381
- text: string;
382
- };
383
- not_available_message: {
384
- text: string;
385
- };
386
- };
387
- export default _default;