@opengeoweb/webmap 9.26.0 → 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/index.esm.js +181 -489
- package/package.json +3 -2
- package/src/lib/components/index.d.ts +1 -2
- package/src/lib/index.d.ts +3 -0
- package/src/lib/utils/consoleErrorMessages.d.ts +11 -0
- package/src/lib/utils/i18n.d.ts +2 -0
- package/src/lib/utils/I18n/lang.en.d.ts +0 -387
- package/src/lib/utils/I18n/lang.nl.d.ts +0 -387
package/index.esm.js
CHANGED
|
@@ -2,6 +2,43 @@ import { compact, range, isEqual } from 'lodash';
|
|
|
2
2
|
import { PROJECTION, dateUtils, defaultDelay as defaultDelay$1 } from '@opengeoweb/shared';
|
|
3
3
|
import { debounce, throttle } from 'throttle-debounce';
|
|
4
4
|
import proj4 from 'proj4';
|
|
5
|
+
import i18n from 'i18next';
|
|
6
|
+
|
|
7
|
+
var en = {
|
|
8
|
+
"map-projection": "Map projection",
|
|
9
|
+
"hold-shift-to-zoom": "Hold SHIFT to zoom",
|
|
10
|
+
"layer-failed-to-load": "Layer failed to load.",
|
|
11
|
+
"layer-failed-to-load-message": "Layer with title \"{{title}}\" failed to load{{message}}",
|
|
12
|
+
"time-too-early": "Time too early",
|
|
13
|
+
"time-too-late": "Time too late",
|
|
14
|
+
"time-outside-range": "Time outside range"
|
|
15
|
+
};
|
|
16
|
+
var fi = {
|
|
17
|
+
"map-projection": "Karttaprojektio",
|
|
18
|
+
"hold-shift-to-zoom": "Zoomaa SHIFT painettuna",
|
|
19
|
+
"layer-failed-to-load": "Tason lataus epäonnistui",
|
|
20
|
+
"layer-failed-to-load-message": "Tason \"{{title}}\" lataus epäonnistui{{message}}",
|
|
21
|
+
"time-too-early": "Liian varhainen aika",
|
|
22
|
+
"time-too-late": "Liian myöhäinen aika",
|
|
23
|
+
"time-outside-range": "Aika valintavälin ulkopuolella"
|
|
24
|
+
};
|
|
25
|
+
var no = {
|
|
26
|
+
"map-projection": "Kartprojeksjon",
|
|
27
|
+
"hold-shift-to-zoom": "Hold SHIFT for å zoome",
|
|
28
|
+
"layer-failed-to-load": "Kartlaget kunne ikke lastes.",
|
|
29
|
+
"layer-failed-to-load-message": "Kartlaget med tittelen \"{{title}}\" kunne ikke lastes{{message}}",
|
|
30
|
+
"time-too-early": "Tid for tidlig",
|
|
31
|
+
"time-too-late": "Tid for sent",
|
|
32
|
+
"time-outside-range": "Tid utenfor spekteret"
|
|
33
|
+
};
|
|
34
|
+
var nl = {
|
|
35
|
+
};
|
|
36
|
+
var webmapTranslations = {
|
|
37
|
+
en: en,
|
|
38
|
+
fi: fi,
|
|
39
|
+
no: no,
|
|
40
|
+
nl: nl
|
|
41
|
+
};
|
|
5
42
|
|
|
6
43
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
44
|
|
|
@@ -6606,395 +6643,20 @@ $$b({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
6606
6643
|
* See the License for the specific language governing permissions and
|
|
6607
6644
|
* limitations under the License.
|
|
6608
6645
|
*
|
|
6609
|
-
* Copyright
|
|
6610
|
-
* Copyright
|
|
6646
|
+
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
6647
|
+
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
6611
6648
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
6612
6649
|
* */
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
are_you_sure: {
|
|
6624
|
-
text: 'Are you sure about deleting this flag?'
|
|
6625
|
-
},
|
|
6626
|
-
delete_title_confirm: {
|
|
6627
|
-
text: 'Delete flag'
|
|
6628
|
-
},
|
|
6629
|
-
default_selected_flag: {
|
|
6630
|
-
text: 'None'
|
|
6631
|
-
},
|
|
6632
|
-
selected_flag: {
|
|
6633
|
-
text: 'Nearest flag:'
|
|
6634
|
-
},
|
|
6635
|
-
add_point_interest_abstract: {
|
|
6636
|
-
text: 'Add or update your point of interest here with a latitude, a longitude and a name of choice.'
|
|
6637
|
-
},
|
|
6638
|
-
insert_name: {
|
|
6639
|
-
text: 'Name:'
|
|
6640
|
-
},
|
|
6641
|
-
add_point_interest: {
|
|
6642
|
-
text: 'Add point of interest'
|
|
6643
|
-
},
|
|
6644
|
-
add: {
|
|
6645
|
-
text: 'Add'
|
|
6646
|
-
},
|
|
6647
|
-
place_search_term: {
|
|
6648
|
-
text: 'Search for location…'
|
|
6649
|
-
},
|
|
6650
|
-
debug_searching_location: {
|
|
6651
|
-
text: 'Searching for location in SQLite DB:'
|
|
6652
|
-
},
|
|
6653
|
-
debug_searching_sqlite_location: {
|
|
6654
|
-
text: 'Searching for location with GeoNames API:'
|
|
6655
|
-
},
|
|
6656
|
-
geonames_api_call_failed: {
|
|
6657
|
-
text: 'GeoNames API request failed'
|
|
6658
|
-
},
|
|
6659
|
-
geonames_sqlite_call_failed: {
|
|
6660
|
-
text: 'GeoNames SQLite request failed.'
|
|
6661
|
-
},
|
|
6662
|
-
no_results_search: {
|
|
6663
|
-
text: 'No results for search'
|
|
6664
|
-
},
|
|
6665
|
-
unable_to_connect_server: {
|
|
6666
|
-
text: 'Unable to connect to the service.'
|
|
6667
|
-
},
|
|
6668
|
-
unable_to_search: {
|
|
6669
|
-
text: 'Unable to perform a search'
|
|
6670
|
-
},
|
|
6671
|
-
no_urls_in_config: {
|
|
6672
|
-
text: 'No GeoNames URLs defined in config file'
|
|
6673
|
-
},
|
|
6674
|
-
only_alpha_num_allowed: {
|
|
6675
|
-
text: 'Search may only contain alpha numeric characters'
|
|
6676
|
-
},
|
|
6677
|
-
no_search_definition: {
|
|
6678
|
-
text: 'Search term is empty'
|
|
6679
|
-
},
|
|
6680
|
-
service_has_error: {
|
|
6681
|
-
text: '--- service has an error ---'
|
|
6682
|
-
},
|
|
6683
|
-
no_time_dimension_in_layer: {
|
|
6684
|
-
text: 'No time dimension found in this layer'
|
|
6685
|
-
},
|
|
6686
|
-
no_service_defined: {
|
|
6687
|
-
text: 'No service defined'
|
|
6688
|
-
},
|
|
6689
|
-
service_url_empty: {
|
|
6690
|
-
text: 'Service URL is empty'
|
|
6691
|
-
},
|
|
6692
|
-
wms_service_exception_code: {
|
|
6693
|
-
text: 'WMS Service exception with code '
|
|
6694
|
-
},
|
|
6695
|
-
unnamed_service: {
|
|
6696
|
-
text: 'Unnamed service'
|
|
6697
|
-
},
|
|
6698
|
-
add_layers: {
|
|
6699
|
-
text: 'Add layers…',
|
|
6700
|
-
tooltip: 'Add new datasets, layers and services'
|
|
6701
|
-
},
|
|
6702
|
-
add_custom_service: {
|
|
6703
|
-
text: 'Add a custom version 1.1.1 Web Map Service (WMS)'
|
|
6704
|
-
},
|
|
6705
|
-
properties_for: {
|
|
6706
|
-
text: 'Properties for'
|
|
6707
|
-
},
|
|
6708
|
-
color_range: {
|
|
6709
|
-
text: 'Color range'
|
|
6710
|
-
},
|
|
6711
|
-
reset: {
|
|
6712
|
-
text: 'Reset'
|
|
6713
|
-
},
|
|
6714
|
-
apply: {
|
|
6715
|
-
text: 'Apply'
|
|
6716
|
-
},
|
|
6717
|
-
min_value: {
|
|
6718
|
-
text: 'Min value'
|
|
6719
|
-
},
|
|
6720
|
-
max_value: {
|
|
6721
|
-
text: 'Max value'
|
|
6722
|
-
},
|
|
6723
|
-
wms_version: {
|
|
6724
|
-
text: 'WMS version'
|
|
6725
|
-
},
|
|
6726
|
-
wms_comp_mode: {
|
|
6727
|
-
text: 'WMS 1.3.0 BBOX compatibility mode'
|
|
6728
|
-
},
|
|
6729
|
-
projections: {
|
|
6730
|
-
text: 'Projections'
|
|
6731
|
-
},
|
|
6732
|
-
projection: {
|
|
6733
|
-
text: 'Projection'
|
|
6734
|
-
},
|
|
6735
|
-
epsg_code: {
|
|
6736
|
-
text: 'EPSG Code'
|
|
6737
|
-
},
|
|
6738
|
-
bounding_box: {
|
|
6739
|
-
text: 'Bounding Box'
|
|
6740
|
-
},
|
|
6741
|
-
file_metadata: {
|
|
6742
|
-
text: 'File metadata'
|
|
6743
|
-
},
|
|
6744
|
-
show_file_metadata: {
|
|
6745
|
-
text: 'Show file metadata'
|
|
6746
|
-
},
|
|
6747
|
-
download_data_wcs: {
|
|
6748
|
-
text: 'Download data via WCS'
|
|
6749
|
-
},
|
|
6750
|
-
coordinate_reference_system: {
|
|
6751
|
-
text: 'Coordinate reference system'
|
|
6752
|
-
},
|
|
6753
|
-
area_bounding_box: {
|
|
6754
|
-
text: 'Area / Bounding box'
|
|
6755
|
-
},
|
|
6756
|
-
dimensions: {
|
|
6757
|
-
text: 'Dimensions'
|
|
6758
|
-
},
|
|
6759
|
-
dimension: {
|
|
6760
|
-
text: 'Dimension'
|
|
6761
|
-
},
|
|
6762
|
-
formats: {
|
|
6763
|
-
text: 'Formats'
|
|
6764
|
-
},
|
|
6765
|
-
north: {
|
|
6766
|
-
text: 'North'
|
|
6767
|
-
},
|
|
6768
|
-
west: {
|
|
6769
|
-
text: 'West'
|
|
6770
|
-
},
|
|
6771
|
-
east: {
|
|
6772
|
-
text: 'East'
|
|
6773
|
-
},
|
|
6774
|
-
south: {
|
|
6775
|
-
text: 'South'
|
|
6776
|
-
},
|
|
6777
|
-
cell_size: {
|
|
6778
|
-
text: 'Cell size'
|
|
6779
|
-
},
|
|
6780
|
-
x_resolution: {
|
|
6781
|
-
text: 'X Resolution'
|
|
6782
|
-
},
|
|
6783
|
-
y_resolution: {
|
|
6784
|
-
text: 'Y Resolution'
|
|
6785
|
-
},
|
|
6786
|
-
raster_size: {
|
|
6787
|
-
text: 'Raster size'
|
|
6788
|
-
},
|
|
6789
|
-
raster_width: {
|
|
6790
|
-
text: 'Raster width'
|
|
6791
|
-
},
|
|
6792
|
-
raster_height: {
|
|
6793
|
-
text: 'Raster height'
|
|
6794
|
-
},
|
|
6795
|
-
format: {
|
|
6796
|
-
text: 'Format'
|
|
6797
|
-
},
|
|
6798
|
-
show: {
|
|
6799
|
-
text: 'Show'
|
|
6800
|
-
},
|
|
6801
|
-
create_permanent_links: {
|
|
6802
|
-
text: 'Create permanent links'
|
|
6803
|
-
},
|
|
6804
|
-
please_select_product: {
|
|
6805
|
-
text: 'Please select a product'
|
|
6806
|
-
},
|
|
6807
|
-
no_capability_element_found: {
|
|
6808
|
-
text: 'No Capability element found in service'
|
|
6809
|
-
},
|
|
6810
|
-
no_wms_capability_element_found: {
|
|
6811
|
-
text: 'No WMS Capability element found'
|
|
6812
|
-
},
|
|
6813
|
-
no_wms_layer_element_found: {
|
|
6814
|
-
text: 'No WMS Layer element found'
|
|
6815
|
-
},
|
|
6816
|
-
settings_and_options: {
|
|
6817
|
-
tooltip: 'Settings and options'
|
|
6818
|
-
},
|
|
6819
|
-
show_time_selection_window: {
|
|
6820
|
-
text: 'Show time selection window…'
|
|
6821
|
-
},
|
|
6822
|
-
create_animation: {
|
|
6823
|
-
text: 'Create animation…'
|
|
6824
|
-
},
|
|
6825
|
-
create_link: {
|
|
6826
|
-
text: 'Create link…'
|
|
6827
|
-
},
|
|
6828
|
-
show_debug_information: {
|
|
6829
|
-
text: 'Show debug information…'
|
|
6830
|
-
},
|
|
6831
|
-
add_custom_wms_service: {
|
|
6832
|
-
text: 'Add custom WMS service…'
|
|
6833
|
-
},
|
|
6834
|
-
undo_zoom_pan_action: {
|
|
6835
|
-
text: 'Undo zoom/pan action'
|
|
6836
|
-
},
|
|
6837
|
-
redo_zoom_pan_action: {
|
|
6838
|
-
text: 'Redo zoom/pan action'
|
|
6839
|
-
},
|
|
6840
|
-
abort_loading: {
|
|
6841
|
-
text: 'Abort loading'
|
|
6842
|
-
},
|
|
6843
|
-
about_the_adaguc_viewer: {
|
|
6844
|
-
text: 'About the ADAGUC viewer',
|
|
6845
|
-
tooptip: 'Display info about the ADAGUC viewer'
|
|
6846
|
-
},
|
|
6847
|
-
about_adaguc: {
|
|
6848
|
-
text: 'About ADAGUC'
|
|
6849
|
-
},
|
|
6850
|
-
about_adaguc_more_information: {
|
|
6851
|
-
text: '<br/><br/>Please visit <a target="_blank" href="http://adaguc.knmi.nl/">http://adaguc.knmi.nl/</a> for more information.<div>'
|
|
6852
|
-
},
|
|
6853
|
-
layers: {
|
|
6854
|
-
text: 'Layers',
|
|
6855
|
-
tooltip: 'Layers'
|
|
6856
|
-
},
|
|
6857
|
-
predefined_areas: {
|
|
6858
|
-
tooltip: 'Select predefined areas'
|
|
6859
|
-
},
|
|
6860
|
-
basemaps_overlays: {
|
|
6861
|
-
tooltip: 'Select basemaps and overlays'
|
|
6862
|
-
},
|
|
6863
|
-
add_layers_and_services: {
|
|
6864
|
-
text: 'Add Layers and Services'
|
|
6865
|
-
},
|
|
6866
|
-
add_new_layer: {
|
|
6867
|
-
tooltip: 'Add new layer'
|
|
6868
|
-
},
|
|
6869
|
-
clone_this_layer: {
|
|
6870
|
-
tooltip: 'Clone this layer and place it on top of the layerlist'
|
|
6871
|
-
},
|
|
6872
|
-
remove_this_layer: {
|
|
6873
|
-
tooltip: 'Remove this layer'
|
|
6874
|
-
},
|
|
6875
|
-
move_layer_up: {
|
|
6876
|
-
tooltip: 'Move this layer up in the list and the map view'
|
|
6877
|
-
},
|
|
6878
|
-
move_layer_down: {
|
|
6879
|
-
tooltip: 'Move this layer down in the list and the map view'
|
|
6880
|
-
},
|
|
6881
|
-
title: {
|
|
6882
|
-
text: 'Title'
|
|
6883
|
-
},
|
|
6884
|
-
layer: {
|
|
6885
|
-
text: 'Layer'
|
|
6886
|
-
},
|
|
6887
|
-
type: {
|
|
6888
|
-
text: 'Type'
|
|
6889
|
-
},
|
|
6890
|
-
name: {
|
|
6891
|
-
text: 'Name'
|
|
6892
|
-
},
|
|
6893
|
-
abstract: {
|
|
6894
|
-
text: 'Abstract'
|
|
6895
|
-
},
|
|
6896
|
-
service: {
|
|
6897
|
-
text: 'Service'
|
|
6898
|
-
},
|
|
6899
|
-
description: {
|
|
6900
|
-
text: 'Description'
|
|
6901
|
-
},
|
|
6902
|
-
no_dimensions_available: {
|
|
6903
|
-
text: 'No layers with a time dimension available.'
|
|
6904
|
-
},
|
|
6905
|
-
load_all: {
|
|
6906
|
-
text: 'Load all'
|
|
6907
|
-
},
|
|
6908
|
-
play_animation: {
|
|
6909
|
-
text: 'Play animation'
|
|
6910
|
-
},
|
|
6911
|
-
stop: {
|
|
6912
|
-
text: 'Stop'
|
|
6913
|
-
},
|
|
6914
|
-
start: {
|
|
6915
|
-
text: 'Start'
|
|
6916
|
-
},
|
|
6917
|
-
opacity: {
|
|
6918
|
-
text: 'Opacity:'
|
|
6919
|
-
},
|
|
6920
|
-
zoom_to_this_layer: {
|
|
6921
|
-
tooltip: 'Zoom to this layer'
|
|
6922
|
-
},
|
|
6923
|
-
start_or_stop_animation: {
|
|
6924
|
-
tooltip: 'Start or stop animation'
|
|
6925
|
-
},
|
|
6926
|
-
reload_this_layer: {
|
|
6927
|
-
tooltip: 'Reload this layer'
|
|
6928
|
-
},
|
|
6929
|
-
layer_properties: {
|
|
6930
|
-
tooltip: 'Layer properties'
|
|
6931
|
-
},
|
|
6932
|
-
hide_or_display_layer: {
|
|
6933
|
-
tooltip: 'Hide or display this layer'
|
|
6934
|
-
},
|
|
6935
|
-
select_layer_product_from_service: {
|
|
6936
|
-
tooltip: 'Select a layer or product from the service'
|
|
6937
|
-
},
|
|
6938
|
-
change_style_layer: {
|
|
6939
|
-
tooltip: 'Change the style of this layer'
|
|
6940
|
-
},
|
|
6941
|
-
available_styles: {
|
|
6942
|
-
text: 'Available styles'
|
|
6943
|
-
},
|
|
6944
|
-
no_styles_available: {
|
|
6945
|
-
text: 'No styles available'
|
|
6946
|
-
},
|
|
6947
|
-
default: {
|
|
6948
|
-
text: 'Default'
|
|
6949
|
-
},
|
|
6950
|
-
embed: {
|
|
6951
|
-
text: 'Embed'
|
|
6952
|
-
},
|
|
6953
|
-
time_selection: {
|
|
6954
|
-
text: 'Time selection'
|
|
6955
|
-
},
|
|
6956
|
-
local_time: {
|
|
6957
|
-
text: 'Local time'
|
|
6958
|
-
},
|
|
6959
|
-
year: {
|
|
6960
|
-
text: 'Year'
|
|
6961
|
-
},
|
|
6962
|
-
month: {
|
|
6963
|
-
text: 'Month'
|
|
6964
|
-
},
|
|
6965
|
-
day: {
|
|
6966
|
-
text: 'Day'
|
|
6967
|
-
},
|
|
6968
|
-
hour: {
|
|
6969
|
-
text: 'Hour'
|
|
6970
|
-
},
|
|
6971
|
-
min: {
|
|
6972
|
-
text: 'Min'
|
|
6973
|
-
},
|
|
6974
|
-
select_layer: {
|
|
6975
|
-
text: 'Select layer'
|
|
6976
|
-
},
|
|
6977
|
-
select_dimension: {
|
|
6978
|
-
text: 'Select dimension'
|
|
6979
|
-
},
|
|
6980
|
-
start_at: {
|
|
6981
|
-
text: 'Start at'
|
|
6982
|
-
},
|
|
6983
|
-
number_of_steps: {
|
|
6984
|
-
text: 'Number of steps'
|
|
6985
|
-
},
|
|
6986
|
-
delay_ms: {
|
|
6987
|
-
text: 'Delay (ms)'
|
|
6988
|
-
},
|
|
6989
|
-
enter_wms_version_url: {
|
|
6990
|
-
text: 'Enter WMS version 1.1.1 URL here...'
|
|
6991
|
-
},
|
|
6992
|
-
enter_search_term: {
|
|
6993
|
-
text: 'Enter your location here…'
|
|
6994
|
-
},
|
|
6995
|
-
not_available_message: {
|
|
6996
|
-
text: 'Not available'
|
|
6997
|
-
}
|
|
6650
|
+
const consoleErrorMessages = {
|
|
6651
|
+
noCapabilityElementFound: 'No Capability element found in service',
|
|
6652
|
+
noServiceDefined: 'No service defined',
|
|
6653
|
+
noWmsCapabilityElementFound: 'No WMS Capability element found',
|
|
6654
|
+
noWmsLayerElementFound: 'No WMS Layer element found',
|
|
6655
|
+
notAvailableMessage: 'Not available',
|
|
6656
|
+
serviceHasError: '--- service has an error ---',
|
|
6657
|
+
serviceUrlEmpty: 'Service URL is empty',
|
|
6658
|
+
unableToConnectServer: 'Unable to connect to the service.',
|
|
6659
|
+
wmsServiceExceptionCode: 'WMS Service exception with code'
|
|
6998
6660
|
};
|
|
6999
6661
|
|
|
7000
6662
|
class WMListener {
|
|
@@ -7333,12 +6995,12 @@ const WMJSGetCapabilities = (service, succes, fail, options, disableCache = fals
|
|
|
7333
6995
|
headers = options.headers;
|
|
7334
6996
|
}
|
|
7335
6997
|
if (!isDefined(service)) {
|
|
7336
|
-
fail(
|
|
6998
|
+
fail(consoleErrorMessages.noServiceDefined);
|
|
7337
6999
|
return;
|
|
7338
7000
|
}
|
|
7339
7001
|
if (service.length === 0) {
|
|
7340
7002
|
debugLogger(DebugType.Error);
|
|
7341
|
-
fail(
|
|
7003
|
+
fail(consoleErrorMessages.serviceUrlEmpty);
|
|
7342
7004
|
return;
|
|
7343
7005
|
}
|
|
7344
7006
|
/* Allow relative URL's */
|
|
@@ -7350,7 +7012,7 @@ const WMJSGetCapabilities = (service, succes, fail, options, disableCache = fals
|
|
|
7350
7012
|
}
|
|
7351
7013
|
if (!service.startsWith('http://') && !service.startsWith('https:') && !service.startsWith('//')) {
|
|
7352
7014
|
debugLogger(DebugType.Error);
|
|
7353
|
-
fail(
|
|
7015
|
+
fail(consoleErrorMessages.serviceUrlEmpty);
|
|
7354
7016
|
return;
|
|
7355
7017
|
}
|
|
7356
7018
|
if (service.indexOf('?') === -1) {
|
|
@@ -7425,10 +7087,10 @@ class WMJSService {
|
|
|
7425
7087
|
throw new Error(message);
|
|
7426
7088
|
}
|
|
7427
7089
|
if (!jsonData.WMT_MS_Capabilities.Capability) {
|
|
7428
|
-
throw new Error(
|
|
7090
|
+
throw new Error(consoleErrorMessages.noWmsCapabilityElementFound);
|
|
7429
7091
|
}
|
|
7430
7092
|
if (!jsonData.WMT_MS_Capabilities.Capability.Layer) {
|
|
7431
|
-
throw new Error(
|
|
7093
|
+
throw new Error(consoleErrorMessages.noWmsLayerElementFound);
|
|
7432
7094
|
}
|
|
7433
7095
|
}
|
|
7434
7096
|
}
|
|
@@ -7444,10 +7106,10 @@ class WMJSService {
|
|
|
7444
7106
|
throw new Error(message);
|
|
7445
7107
|
}
|
|
7446
7108
|
if (!jsonData.WMS_Capabilities.Capability) {
|
|
7447
|
-
throw new Error(
|
|
7109
|
+
throw new Error(consoleErrorMessages.noWmsCapabilityElementFound);
|
|
7448
7110
|
}
|
|
7449
7111
|
if (!jsonData.WMS_Capabilities.Capability.Layer) {
|
|
7450
|
-
throw new Error(
|
|
7112
|
+
throw new Error(consoleErrorMessages.noWmsLayerElementFound);
|
|
7451
7113
|
}
|
|
7452
7114
|
}
|
|
7453
7115
|
}
|
|
@@ -7460,7 +7122,7 @@ class WMJSService {
|
|
|
7460
7122
|
try {
|
|
7461
7123
|
capabilityObject = jsonData.WMS_Capabilities.Capability;
|
|
7462
7124
|
} catch (_a) {
|
|
7463
|
-
throw new Error(
|
|
7125
|
+
throw new Error(consoleErrorMessages.noCapabilityElementFound);
|
|
7464
7126
|
}
|
|
7465
7127
|
}
|
|
7466
7128
|
return capabilityObject;
|
|
@@ -7564,13 +7226,13 @@ class WMJSService {
|
|
|
7564
7226
|
try {
|
|
7565
7227
|
this.abstract = WMSCapabilities.Service.Abstract.value;
|
|
7566
7228
|
} catch (e) {
|
|
7567
|
-
this.abstract =
|
|
7229
|
+
this.abstract = consoleErrorMessages.notAvailableMessage;
|
|
7568
7230
|
}
|
|
7569
7231
|
// Get Title
|
|
7570
7232
|
try {
|
|
7571
7233
|
this.title = WMSCapabilities.Service.Title.value;
|
|
7572
7234
|
} catch (e) {
|
|
7573
|
-
this.title =
|
|
7235
|
+
this.title = consoleErrorMessages.notAvailableMessage;
|
|
7574
7236
|
}
|
|
7575
7237
|
// Get OnlineResource
|
|
7576
7238
|
try {
|
|
@@ -7582,7 +7244,7 @@ class WMJSService {
|
|
|
7582
7244
|
WMSCapabilities.Service.OnlineResource.attr['xlink:href'];
|
|
7583
7245
|
}
|
|
7584
7246
|
} catch (e) {
|
|
7585
|
-
this.onlineresource =
|
|
7247
|
+
this.onlineresource = consoleErrorMessages.notAvailableMessage;
|
|
7586
7248
|
}
|
|
7587
7249
|
// Fill in flatlayer object
|
|
7588
7250
|
this.getLayerObjectsFlat(() => null, () => null, false, options);
|
|
@@ -7617,7 +7279,7 @@ class WMJSService {
|
|
|
7617
7279
|
return `Exception: ${code}.\n${value}`;
|
|
7618
7280
|
}
|
|
7619
7281
|
}
|
|
7620
|
-
return
|
|
7282
|
+
return `${consoleErrorMessages.wmsServiceExceptionCode} ${code}`;
|
|
7621
7283
|
}
|
|
7622
7284
|
} catch (e) {
|
|
7623
7285
|
// do nothing
|
|
@@ -11702,6 +11364,33 @@ class WMCanvasBuffer {
|
|
|
11702
11364
|
}
|
|
11703
11365
|
}
|
|
11704
11366
|
|
|
11367
|
+
const WEBMAP_NAMESPACE = 'webmap';
|
|
11368
|
+
// do not use `initReactI18next` as this is not a react library
|
|
11369
|
+
i18n.init({
|
|
11370
|
+
lng: 'en',
|
|
11371
|
+
ns: WEBMAP_NAMESPACE,
|
|
11372
|
+
interpolation: {
|
|
11373
|
+
escapeValue: false
|
|
11374
|
+
},
|
|
11375
|
+
resources: {
|
|
11376
|
+
en: {
|
|
11377
|
+
[WEBMAP_NAMESPACE]: webmapTranslations.en
|
|
11378
|
+
},
|
|
11379
|
+
fi: {
|
|
11380
|
+
[WEBMAP_NAMESPACE]: webmapTranslations.fi
|
|
11381
|
+
},
|
|
11382
|
+
no: {
|
|
11383
|
+
[WEBMAP_NAMESPACE]: webmapTranslations.no
|
|
11384
|
+
},
|
|
11385
|
+
nl: {
|
|
11386
|
+
[WEBMAP_NAMESPACE]: webmapTranslations.nl
|
|
11387
|
+
}
|
|
11388
|
+
}
|
|
11389
|
+
});
|
|
11390
|
+
const translateKeyOutsideComponents = (key, params = undefined) => i18n.t(key, Object.assign({
|
|
11391
|
+
ns: WEBMAP_NAMESPACE
|
|
11392
|
+
}, params));
|
|
11393
|
+
|
|
11705
11394
|
const getBBOXandProjString = (layer, projection) => {
|
|
11706
11395
|
let request = '';
|
|
11707
11396
|
const {
|
|
@@ -12005,10 +11694,13 @@ const getErrorsToDisplay = (canvasErrors, getLayerByServiceAndName) => {
|
|
|
12005
11694
|
// Only show if layer is present and enabled
|
|
12006
11695
|
if (layer && layer.enabled) {
|
|
12007
11696
|
const message = error.linkedInfo.message ? `, ${error.linkedInfo.message}` : '';
|
|
12008
|
-
return list.concat(
|
|
11697
|
+
return list.concat(translateKeyOutsideComponents('layer-failed-to-load-message', {
|
|
11698
|
+
title: error.linkedInfo.layer.title || '',
|
|
11699
|
+
message
|
|
11700
|
+
}));
|
|
12009
11701
|
}
|
|
12010
11702
|
} else {
|
|
12011
|
-
return list.concat('
|
|
11703
|
+
return list.concat(translateKeyOutsideComponents('layer-failed-to-load'));
|
|
12012
11704
|
}
|
|
12013
11705
|
return list;
|
|
12014
11706
|
}, []);
|
|
@@ -13421,33 +13113,33 @@ const drawScaleBar = (scaleBarProps, ctx) => {
|
|
|
13421
13113
|
ctx.lineTo(offsetX + scaleBarProps.width * 2 + 1, scaleBarHeight - 2 - 7 + offsetY);
|
|
13422
13114
|
let units = '';
|
|
13423
13115
|
if (srs === PROJECTION.EPSG_3411.value) {
|
|
13424
|
-
units = '
|
|
13116
|
+
units = 'm';
|
|
13425
13117
|
}
|
|
13426
13118
|
if (srs === PROJECTION.EPSG_3412.value) {
|
|
13427
|
-
units = '
|
|
13119
|
+
units = 'm';
|
|
13428
13120
|
}
|
|
13429
13121
|
if (srs === PROJECTION.EPSG_3575.value) {
|
|
13430
|
-
units = '
|
|
13122
|
+
units = 'm';
|
|
13431
13123
|
}
|
|
13432
13124
|
if (srs === PROJECTION.EPSG_4326.value) {
|
|
13433
|
-
units = '
|
|
13125
|
+
units = 'deg';
|
|
13434
13126
|
}
|
|
13435
13127
|
if (srs === PROJECTION.EPSG_28992.value) {
|
|
13436
|
-
units = '
|
|
13128
|
+
units = 'm';
|
|
13437
13129
|
}
|
|
13438
13130
|
if (srs === PROJECTION.EPSG_32661.value) {
|
|
13439
|
-
units = '
|
|
13131
|
+
units = 'm';
|
|
13440
13132
|
}
|
|
13441
13133
|
if (srs === PROJECTION.EPSG_3857.value) {
|
|
13442
|
-
units = '
|
|
13134
|
+
units = 'm';
|
|
13443
13135
|
}
|
|
13444
13136
|
if (srs === PROJECTION.EPSG_900913.value) {
|
|
13445
|
-
units = '
|
|
13137
|
+
units = 'm';
|
|
13446
13138
|
}
|
|
13447
13139
|
if (srs === PROJECTION.EPSG_102100.value) {
|
|
13448
|
-
units = '
|
|
13140
|
+
units = 'm';
|
|
13449
13141
|
}
|
|
13450
|
-
if (units === '
|
|
13142
|
+
if (units === 'm') {
|
|
13451
13143
|
if (scaleBarProps.mapunits > 1000) {
|
|
13452
13144
|
scaleBarProps.mapunits /= 1000;
|
|
13453
13145
|
units = 'km';
|
|
@@ -13660,21 +13352,21 @@ class WMJSMap {
|
|
|
13660
13352
|
this.canvasErrors.push({
|
|
13661
13353
|
linkedInfo: {
|
|
13662
13354
|
layer,
|
|
13663
|
-
message: '
|
|
13355
|
+
message: translateKeyOutsideComponents('time-outside-range')
|
|
13664
13356
|
}
|
|
13665
13357
|
});
|
|
13666
13358
|
} else if (dimension.currentValue === WMDateTooEarlyString) {
|
|
13667
13359
|
this.canvasErrors.push({
|
|
13668
13360
|
linkedInfo: {
|
|
13669
13361
|
layer,
|
|
13670
|
-
message: '
|
|
13362
|
+
message: translateKeyOutsideComponents('time-too-early')
|
|
13671
13363
|
}
|
|
13672
13364
|
});
|
|
13673
13365
|
} else if (dimension.currentValue === WMDateTooLateString) {
|
|
13674
13366
|
this.canvasErrors.push({
|
|
13675
13367
|
linkedInfo: {
|
|
13676
13368
|
layer,
|
|
13677
|
-
message: '
|
|
13369
|
+
message: translateKeyOutsideComponents('time-too-late')
|
|
13678
13370
|
}
|
|
13679
13371
|
});
|
|
13680
13372
|
}
|
|
@@ -13732,7 +13424,7 @@ class WMJSMap {
|
|
|
13732
13424
|
const yText = Math.round(this.mouseGeoCoordXY.y * roundingFactor) / roundingFactor;
|
|
13733
13425
|
let units = '';
|
|
13734
13426
|
if (this._srs === PROJECTION.EPSG_3857.value) {
|
|
13735
|
-
units = '
|
|
13427
|
+
units = 'm';
|
|
13736
13428
|
}
|
|
13737
13429
|
ctx.fillText(`CoordYX: (${yText}, ${xText}) ${units}`, 5, this._height - 50);
|
|
13738
13430
|
}
|
|
@@ -13744,11 +13436,11 @@ class WMJSMap {
|
|
|
13744
13436
|
ctx.fillStyle = '#000000';
|
|
13745
13437
|
const xText = Math.round(llCoord.x * roundingFactor) / roundingFactor;
|
|
13746
13438
|
const yText = Math.round(llCoord.y * roundingFactor) / roundingFactor;
|
|
13747
|
-
ctx.fillText(`Lat/Lon: (${yText.toFixed(2)}, ${xText.toFixed(2)})
|
|
13439
|
+
ctx.fillText(`Lat/Lon: (${yText.toFixed(2)}, ${xText.toFixed(2)}) deg`, 5, this._height - 38);
|
|
13748
13440
|
}
|
|
13749
13441
|
}
|
|
13750
13442
|
ctx.fillStyle = '#000000';
|
|
13751
|
-
ctx.fillText(
|
|
13443
|
+
ctx.fillText(`${translateKeyOutsideComponents('map-projection')}: ${this._srs}`, 5, this._height - 26);
|
|
13752
13444
|
}
|
|
13753
13445
|
/* Show layer metadata */
|
|
13754
13446
|
if (this.showLayerInfo === true) {
|
|
@@ -14558,7 +14250,7 @@ class WMJSMap {
|
|
|
14558
14250
|
}
|
|
14559
14251
|
_mouseWheelEvent(event) {
|
|
14560
14252
|
if (this.holdShiftToScroll && !event.shiftKey) {
|
|
14561
|
-
this.setMessageValue = '
|
|
14253
|
+
this.setMessageValue = translateKeyOutsideComponents('hold-shift-to-zoom');
|
|
14562
14254
|
this.draw();
|
|
14563
14255
|
// Clear text after 500ms
|
|
14564
14256
|
setTimeout(() => {
|
|
@@ -15896,7 +15588,7 @@ class WMLayer {
|
|
|
15896
15588
|
if (options.title) {
|
|
15897
15589
|
this.title = options.title;
|
|
15898
15590
|
}
|
|
15899
|
-
this.abstract =
|
|
15591
|
+
this.abstract = consoleErrorMessages.notAvailableMessage;
|
|
15900
15592
|
if (options.enabled === false) {
|
|
15901
15593
|
this.enabled = false;
|
|
15902
15594
|
}
|
|
@@ -16010,9 +15702,9 @@ class WMLayer {
|
|
|
16010
15702
|
}
|
|
16011
15703
|
__parseGetCapForLayer(getcapabilitiesjson, layerDoneCallback, fail) {
|
|
16012
15704
|
if (!getcapabilitiesjson) {
|
|
16013
|
-
this.title =
|
|
16014
|
-
this.abstract =
|
|
16015
|
-
fail(this,
|
|
15705
|
+
this.title = consoleErrorMessages.serviceHasError;
|
|
15706
|
+
this.abstract = consoleErrorMessages.notAvailableMessage;
|
|
15707
|
+
fail(this, consoleErrorMessages.unableToConnectServer);
|
|
16016
15708
|
return;
|
|
16017
15709
|
}
|
|
16018
15710
|
const wmjsService = WMGetServiceFromStore(this.service);
|
|
@@ -16053,7 +15745,7 @@ class WMLayer {
|
|
|
16053
15745
|
}
|
|
16054
15746
|
if (this.name === undefined || this.name.length < 1) {
|
|
16055
15747
|
this.title = WMEmptyLayerTitle;
|
|
16056
|
-
this.abstract =
|
|
15748
|
+
this.abstract = consoleErrorMessages.notAvailableMessage;
|
|
16057
15749
|
layerDoneCallback(this);
|
|
16058
15750
|
return;
|
|
16059
15751
|
}
|
|
@@ -16099,7 +15791,7 @@ class WMLayer {
|
|
|
16099
15791
|
// Function will be called when the layer with the right name is found in the getcap doc
|
|
16100
15792
|
const populateLayerFromTreeElement = jsonlayer => {
|
|
16101
15793
|
this.title = jsonlayer.title || jsonlayer.name || '';
|
|
16102
|
-
this.abstract = jsonlayer.abstract ||
|
|
15794
|
+
this.abstract = jsonlayer.abstract || consoleErrorMessages.notAvailableMessage;
|
|
16103
15795
|
this.path = jsonlayer.path.join('/');
|
|
16104
15796
|
/** ***************** Go through styles **************** */
|
|
16105
15797
|
configureStyles(jsonlayer, this);
|
|
@@ -16150,7 +15842,7 @@ class WMLayer {
|
|
|
16150
15842
|
message = `Unable to find layer '${this.title}' in service '${this.service}'`;
|
|
16151
15843
|
}
|
|
16152
15844
|
this.title = '--- layer not found in service ---';
|
|
16153
|
-
this.abstract =
|
|
15845
|
+
this.abstract = consoleErrorMessages.notAvailableMessage;
|
|
16154
15846
|
fail(this, message);
|
|
16155
15847
|
return;
|
|
16156
15848
|
}
|
|
@@ -16183,7 +15875,7 @@ class WMLayer {
|
|
|
16183
15875
|
const fail = (_layer, message) => {
|
|
16184
15876
|
this.hasError = true;
|
|
16185
15877
|
this.lastError = message;
|
|
16186
|
-
this.title =
|
|
15878
|
+
this.title = consoleErrorMessages.serviceHasError;
|
|
16187
15879
|
layerDoneCallback(_layer);
|
|
16188
15880
|
if (isDefined(this._options.failure)) {
|
|
16189
15881
|
this._options.failure(_layer, message);
|
|
@@ -16193,7 +15885,7 @@ class WMLayer {
|
|
|
16193
15885
|
this.__parseGetCapForLayer(data, layerDoneCallback, fail);
|
|
16194
15886
|
};
|
|
16195
15887
|
const requestfail = () => {
|
|
16196
|
-
fail(this,
|
|
15888
|
+
fail(this, consoleErrorMessages.noCapabilityElementFound);
|
|
16197
15889
|
};
|
|
16198
15890
|
const options = {
|
|
16199
15891
|
headers: {}
|
|
@@ -16407,13 +16099,13 @@ const defaultTimeSpan = 24 * 3600;
|
|
|
16407
16099
|
const speedFactors = [0.1, 0.2, 0.5, 1, 2, 4, 8, 16]; // Declares available animation speed multipliers for default delay
|
|
16408
16100
|
|
|
16409
16101
|
var mapConstants = /*#__PURE__*/Object.freeze({
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16102
|
+
__proto__: null,
|
|
16103
|
+
defaultAnimationDelayAtStart: defaultAnimationDelayAtStart,
|
|
16104
|
+
defaultDelay: defaultDelay,
|
|
16105
|
+
defaultSecondsPerPx: defaultSecondsPerPx,
|
|
16106
|
+
defaultTimeSpan: defaultTimeSpan,
|
|
16107
|
+
defaultTimeStep: defaultTimeStep,
|
|
16108
|
+
speedFactors: speedFactors
|
|
16417
16109
|
});
|
|
16418
16110
|
|
|
16419
16111
|
/* *
|
|
@@ -16591,23 +16283,23 @@ const getSpeedDelay = speedFactor => {
|
|
|
16591
16283
|
};
|
|
16592
16284
|
|
|
16593
16285
|
var utils = /*#__PURE__*/Object.freeze({
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16286
|
+
__proto__: null,
|
|
16287
|
+
clearImageCacheForAllMaps: clearImageCacheForAllMaps,
|
|
16288
|
+
generateLayerId: generateLayerId,
|
|
16289
|
+
generateMapId: generateMapId,
|
|
16290
|
+
generateTimesliderId: generateTimesliderId,
|
|
16291
|
+
getSpeedDelay: getSpeedDelay,
|
|
16292
|
+
getWMJSDimensionForLayerAndDimension: getWMJSDimensionForLayerAndDimension,
|
|
16293
|
+
getWMJSMapById: getWMJSMapById,
|
|
16294
|
+
getWMJSMapIds: getWMJSMapIds,
|
|
16295
|
+
getWMJSTimeDimensionForLayerId: getWMJSTimeDimensionForLayerId,
|
|
16296
|
+
getWMLayerById: getWMLayerById,
|
|
16297
|
+
registerWMJSMap: registerWMJSMap,
|
|
16298
|
+
registerWMLayer: registerWMLayer,
|
|
16299
|
+
roundWithTimeStep: roundWithTimeStep,
|
|
16300
|
+
unRegisterAllWMJSLayersAndMaps: unRegisterAllWMJSLayersAndMaps,
|
|
16301
|
+
unRegisterWMJSLayer: unRegisterWMJSLayer,
|
|
16302
|
+
unRegisterWMJSMap: unRegisterWMJSMap
|
|
16611
16303
|
});
|
|
16612
16304
|
|
|
16613
16305
|
/* *
|
|
@@ -16986,18 +16678,18 @@ const multiDimensionLayer3 = {
|
|
|
16986
16678
|
};
|
|
16987
16679
|
|
|
16988
16680
|
var testSettings = /*#__PURE__*/Object.freeze({
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
16681
|
+
__proto__: null,
|
|
16682
|
+
WmLayerWithoutTimeDimension: WmLayerWithoutTimeDimension,
|
|
16683
|
+
WmMultiDimensionLayer: WmMultiDimensionLayer,
|
|
16684
|
+
WmdefaultReduxLayerRadarKNMI: WmdefaultReduxLayerRadarKNMI,
|
|
16685
|
+
crsListForRADNL25PCPCMLayer: crsListForRADNL25PCPCMLayer,
|
|
16686
|
+
defaultReduxLayerRadarColor: defaultReduxLayerRadarColor,
|
|
16687
|
+
defaultReduxLayerRadarKNMI: defaultReduxLayerRadarKNMI$1,
|
|
16688
|
+
layerWithoutTimeDimension: layerWithoutTimeDimension,
|
|
16689
|
+
makeGeoservicesRadarLayer: makeGeoservicesRadarLayer,
|
|
16690
|
+
multiDimensionLayer: multiDimensionLayer$1,
|
|
16691
|
+
multiDimensionLayer3: multiDimensionLayer3,
|
|
16692
|
+
styleListForRADNL25PCPCMLayer: styleListForRADNL25PCPCMLayer
|
|
17001
16693
|
});
|
|
17002
16694
|
|
|
17003
16695
|
/* *
|
|
@@ -17820,27 +17512,27 @@ const mockGetLayersFlattenedFromService = url => __awaiter(void 0, void 0, void
|
|
|
17820
17512
|
});
|
|
17821
17513
|
|
|
17822
17514
|
var getCapabilities$1 = /*#__PURE__*/Object.freeze({
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17515
|
+
__proto__: null,
|
|
17516
|
+
MOCK_URL_DEFAULT: MOCK_URL_DEFAULT,
|
|
17517
|
+
MOCK_URL_DEFAULT2: MOCK_URL_DEFAULT2,
|
|
17518
|
+
MOCK_URL_HTTP: MOCK_URL_HTTP,
|
|
17519
|
+
MOCK_URL_INVALID: MOCK_URL_INVALID,
|
|
17520
|
+
MOCK_URL_NO_CHILDREN: MOCK_URL_NO_CHILDREN,
|
|
17521
|
+
MOCK_URL_SLOW: MOCK_URL_SLOW,
|
|
17522
|
+
MOCK_URL_SLOW_FAILS: MOCK_URL_SLOW_FAILS,
|
|
17523
|
+
MOCK_URL_WITH_CHILDREN: MOCK_URL_WITH_CHILDREN,
|
|
17524
|
+
MOCK_URL_WITH_NO_TITLE: MOCK_URL_WITH_NO_TITLE,
|
|
17525
|
+
MOCK_URL_WITH_NO_TITLE_OR_NAME: MOCK_URL_WITH_NO_TITLE_OR_NAME,
|
|
17526
|
+
MOCK_URL_WITH_SUBCATEGORY: MOCK_URL_WITH_SUBCATEGORY,
|
|
17527
|
+
mockGetLayersFlattenedFromService: mockGetLayersFlattenedFromService,
|
|
17528
|
+
mockGetLayersFromService: mockGetLayersFromService,
|
|
17529
|
+
mockLayersDefault: mockLayersDefault,
|
|
17530
|
+
mockLayersDefault2: mockLayersDefault2,
|
|
17531
|
+
mockLayersNoChildren: mockLayersNoChildren,
|
|
17532
|
+
mockLayersWithChildren: mockLayersWithChildren,
|
|
17533
|
+
mockLayersWithNoTitle: mockLayersWithNoTitle,
|
|
17534
|
+
mockLayersWithNoTitleOrName: mockLayersWithNoTitleOrName,
|
|
17535
|
+
mockLayersWithSubcategory: mockLayersWithSubcategory
|
|
17844
17536
|
});
|
|
17845
17537
|
|
|
17846
17538
|
const mockGetCapabilities = Object.assign(Object.assign({}, getCapabilities$1), {
|
|
@@ -17905,10 +17597,10 @@ const getLayersFlattenedFromService = (serviceUrl, forceReload = false) => {
|
|
|
17905
17597
|
};
|
|
17906
17598
|
|
|
17907
17599
|
var getCapabilities = /*#__PURE__*/Object.freeze({
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
|
|
17600
|
+
__proto__: null,
|
|
17601
|
+
getLayersFlattenedFromService: getLayersFlattenedFromService,
|
|
17602
|
+
getLayersFromService: getLayersFromService,
|
|
17603
|
+
recurseNodes: recurseNodes
|
|
17912
17604
|
});
|
|
17913
17605
|
|
|
17914
|
-
export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START,
|
|
17606
|
+
export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WEBMAP_NAMESPACE, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, WMGetServiceFromStore, WMImage, WMImageEventType, WMJSDimension, WMJSMAP_LONLAT_EPSGCODE, WMJSMap, WMJSService, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMProjection, WMSJSMAP_MINIMUM_MAP_HEIGHT, WMSJSMAP_MINIMUM_MAP_WIDTH, WMSVersion, bgImageStoreLength, buildMapLayerDims, buildWMSGetMapRequest, clearImageCacheForAllMaps, debugLogger, defaultReduxLayerRadarKNMI, detectLeftButton, detectRightButton, drawScaleBar, drawTextBG, generateLayerId, generateMapId, generateTimesliderId, getBBOXandProjString, getCapabilities, getErrorsToDisplay, getGeoCoordFromLatLong, getGeoCoordFromPixelCoord, getLatLongFromPixelCoord, getLayerIndex, getLegendGraphicURLForLayer, getPixelCoordFromGeoCoord, getPixelCoordFromLatLong, getScaleBarProperties, getSpeedDelay, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSMapIds, getWMJSTimeDimensionForLayerId, getWMLayerById, getWMSGetFeatureInfoRequestURL, getWMSRequests, handleDateUtilsISOString, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapConstants, mapImageStoreLength, mockGetCapabilities, multiDimensionLayer, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, registerWMJSMap, registerWMLayer, roundWithTimeStep, speedFactors, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, unRegisterWMJSMap, testSettings as webmapTestSettings, webmapTranslations, utils as webmapUtils, wmServiceListener };
|