@corpsmap/corpsmap 3.2.93 → 3.2.98
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/README.md +33 -0
- package/dist/corpsmap.css +1 -0
- package/dist/corpsmap.es.js +90955 -0
- package/dist/corpsmap.umd.js +401 -0
- package/dist/vite.svg +1 -0
- package/package.json +70 -87
- package/src/App.css +42 -0
- package/src/App.jsx +12 -0
- package/src/application-bundles/api-bundle.js +76 -74
- package/src/application-bundles/basic-toolbar-bundle.js +57 -57
- package/src/application-bundles/create-ol-map-bundle.jsx +278 -0
- package/src/application-bundles/identify-bundle.js +119 -119
- package/src/application-bundles/index.js +1 -1
- package/src/application-bundles/map-basemap-bundle.js +73 -69
- package/src/application-bundles/map-layers-bundle.js +42 -35
- package/src/application-bundles/map-view-bundle.jsx +334 -0
- package/src/application-bundles/notification-bundle.js +37 -32
- package/src/application-bundles/primary-panel-bundle.js +85 -85
- package/src/application-bundles/search-bundle.js +122 -122
- package/src/application-bundles/south-region-bundle.js +96 -88
- package/src/application-bundles/vertical-layout-bundle.js +88 -88
- package/src/application-bundles/viewport-bundle.js +19 -18
- package/src/application-bundles-old/ui-bundle.js +240 -179
- package/src/application-containers/{basic-toolbar.js → basic-toolbar.jsx} +24 -24
- package/src/application-containers/{corpsmap.js → corpsmap.jsx} +7 -2
- package/src/application-containers/{left-sidebar.js → left-sidebar.jsx} +3 -6
- package/src/application-containers/{lower-right-toolbar.js → lower-right-toolbar.jsx} +12 -11
- package/src/application-containers/map.jsx +57 -0
- package/src/application-containers/{modal-window.js → modal-window.jsx} +13 -15
- package/src/application-containers/{north-region.js → north-region.jsx} +26 -25
- package/src/application-containers/{notification-pane.js → notification-pane.jsx} +37 -37
- package/src/application-containers/{notification-quadrant.js → notification-quadrant.jsx} +20 -20
- package/src/application-containers/{notification.js → notification.jsx} +91 -91
- package/src/application-containers/{primary-panel.js → primary-panel.jsx} +94 -94
- package/src/application-containers/right-sidebar.jsx +44 -0
- package/src/application-containers/{south-region-tab.js → south-region-tab.jsx} +26 -17
- package/src/application-containers/south-region.jsx +75 -0
- package/src/application-containers/upper-right-toolbar.jsx +28 -0
- package/src/application-controls/{basic-toolbar-button.js → basic-toolbar-button.jsx} +124 -124
- package/src/application-controls/{index.js → index.jsx} +34 -34
- package/src/application-controls/{search-results-list-item.js → search-results-list-item.jsx} +50 -50
- package/src/application-controls/{sidebar-button.js → sidebar-button.jsx} +69 -69
- package/src/application-controls/{sidebar-panel-opener.js → sidebar-panel-opener.jsx} +4 -4
- package/src/application-controls/{tree-list-folder.js → tree-list-folder.jsx} +46 -46
- package/src/application-controls/tree-list-item.jsx +83 -0
- package/src/application-exports/{map-provider.js → map-provider.jsx} +122 -100
- package/src/assets/react.svg +1 -0
- package/src/config/default-config.js +53 -68
- package/src/core-plugins/add-data/{add-data-button.js → add-data-button.jsx} +34 -34
- package/src/core-plugins/add-data/{add-geojson.js → add-geojson.jsx} +47 -47
- package/src/core-plugins/add-data/{add-kmlfile.js → add-kmlfile.jsx} +46 -46
- package/src/core-plugins/add-data/add-shapefile.jsx +47 -0
- package/src/core-plugins/add-data/bundle.js +226 -225
- package/src/core-plugins/basemap-switcher/{basemap-switcher-list-item.js → basemap-switcher-list-item.jsx} +48 -45
- package/src/core-plugins/basemap-switcher/{basemap-switcher-list.js → basemap-switcher-list.jsx} +1 -1
- package/src/core-plugins/bookmarks/{bookmark-list-item.js → bookmark-list-item.jsx} +26 -22
- package/src/core-plugins/bookmarks/{bookmark-list.js → bookmark-list.jsx} +1 -1
- package/src/core-plugins/bookmarks/bookmark-panel.jsx +191 -0
- package/src/core-plugins/catalog/catalog-button.jsx +33 -0
- package/src/core-plugins/catalog/catalog-list-item.jsx +118 -0
- package/src/core-plugins/catalog/catalog-list.jsx +78 -0
- package/src/core-plugins/catalog/{catalog-modal-window.js → catalog-modal-window.jsx} +35 -25
- package/src/core-plugins/change-log/bundle.js +2 -2
- package/src/core-plugins/change-log/{change-log-button.js → change-log-button.jsx} +40 -44
- package/src/core-plugins/change-log/{change-log-modal.js → change-log-modal.jsx} +4 -11
- package/src/core-plugins/change-log/index.js +14 -14
- package/src/core-plugins/change-log/{select-district.js → select-district.jsx} +73 -73
- package/src/core-plugins/contact-form/bundle.js +239 -244
- package/src/core-plugins/contact-form/index.js +17 -17
- package/src/core-plugins/contact-form/{question-button.js → question-button.jsx} +36 -36
- package/src/core-plugins/contact-form/{question-modal.js → question-modal.jsx} +215 -189
- package/src/core-plugins/coordinate-display/bundle.jsx +269 -0
- package/src/core-plugins/coordinate-display/{coordinate-display-bar.js → coordinate-display-bar.jsx} +66 -66
- package/src/core-plugins/coordinate-display/{coordinate-display-settings.js → coordinate-display-settings.jsx} +3 -7
- package/src/core-plugins/coordinate-display/{coordinate-interaction-bar.js → coordinate-interaction-bar.jsx} +1 -1
- package/src/core-plugins/coordinate-display/{coordinate-lat-lon-input.js → coordinate-lat-lon-input.jsx} +35 -35
- package/src/core-plugins/coordinate-display/{coordinate-popup.js → coordinate-popup.jsx} +27 -27
- package/src/core-plugins/draw-tools/create-draw-bundle.js +148 -138
- package/src/core-plugins/draw-tools/draw-button.jsx +204 -0
- package/src/core-plugins/draw-tools-old/create-draw-bundle.js +137 -127
- package/src/core-plugins/draw-tools-old/draw-button.js +90 -78
- package/src/core-plugins/editor/editor-base.js +8 -10
- package/src/core-plugins/editor/editor-button.js +122 -92
- package/src/core-plugins/editor/editor-table.js +62 -61
- package/src/core-plugins/geocoder/{bundle.js → bundle.jsx} +186 -186
- package/src/core-plugins/geocoder/index.js +14 -14
- package/src/core-plugins/geocoder/{overlay.js → overlay.jsx} +30 -30
- package/src/core-plugins/geocoder/search-bar.js copy.save +123 -123
- package/src/core-plugins/geocoder/{search-bar.js → search-bar.jsx} +121 -122
- package/src/core-plugins/identify/{bundle.js → bundle.jsx} +709 -707
- package/src/core-plugins/identify/{identify-buffer-section.js → identify-buffer-section.jsx} +52 -52
- package/src/core-plugins/identify/{identify-buffer-settings.js → identify-buffer-settings.jsx} +48 -48
- package/src/core-plugins/identify/{identify-button.js → identify-button.jsx} +100 -100
- package/src/core-plugins/identify/{identify-details-table.js → identify-details-table.jsx} +121 -118
- package/src/core-plugins/identify/identify-details.js +69 -69
- package/src/core-plugins/identify/{identify-sidebar-list-item.js → identify-sidebar-list-item.jsx} +106 -99
- package/src/core-plugins/identify/{identify-sidebar.js → identify-sidebar.jsx} +103 -99
- package/src/core-plugins/identify/{identify-table-cell.js → identify-table-cell.jsx} +49 -49
- package/src/core-plugins/identify/{identify-table.js → identify-table.jsx} +319 -334
- package/src/core-plugins/identify/index.js +27 -27
- package/src/core-plugins/identify/listeners/arcgis.js +158 -158
- package/src/core-plugins/identify/listeners/geojson.jsx +164 -0
- package/src/core-plugins/identify/listeners/raster.js +89 -89
- package/src/core-plugins/identify/listeners/{vector.js → vector.jsx} +106 -106
- package/src/core-plugins/identify-arcgis-rest/bundle.js +169 -169
- package/src/core-plugins/identify-cm/bundle.js +82 -82
- package/src/core-plugins/identify-geojson/bundle.js +164 -143
- package/src/core-plugins/identify-vector/{bundle.js → bundle.jsx} +135 -135
- package/src/core-plugins/identify-wms/bundle.js +138 -138
- package/src/core-plugins/legend/bundle.js +753 -730
- package/src/core-plugins/legend/{legend-header.js → legend-header.jsx} +1 -1
- package/src/core-plugins/legend/{legend-item-multiple.js → legend-item-multiple.jsx} +32 -32
- package/src/core-plugins/legend/{legend-panel.js → legend-panel.jsx} +1 -1
- package/src/core-plugins/login/login-button.jsx +49 -0
- package/src/core-plugins/map-loading-indicator/{loading-indicator.js → loading-indicator.jsx} +1 -1
- package/src/core-plugins/measure-tools/{measure-options.js → measure-options.jsx} +5 -8
- package/src/core-plugins/measure-tools/{measure-tools-button.js → measure-tools-button.jsx} +1 -1
- package/src/core-plugins/permalink/{permalink-button.js → permalink-button.jsx} +13 -13
- package/src/core-plugins/permalink/permalink-modal.jsx +67 -0
- package/src/core-plugins/print-map/{bundle.js → bundle.jsx} +316 -316
- package/src/core-plugins/print-map/{button.js → button.jsx} +1 -1
- package/src/core-plugins/resources/bundle.js +55 -50
- package/src/core-plugins/resources/resources-button.jsx +40 -0
- package/src/core-plugins/resources/{resources-modal.js → resources-modal.jsx} +9 -3
- package/src/core-plugins/rotate-north/{rotate-north-button.js → rotate-north-button.jsx} +2 -2
- package/src/core-plugins/theme-switcher/{theme-list-item.js → theme-list-item.jsx} +3 -3
- package/src/core-plugins/theme-switcher/{theme-list.js → theme-list.jsx} +1 -1
- package/src/core-plugins/three-d/three-d-button.jsx +44 -0
- package/src/core-plugins/tree-view/bundle.js +513 -513
- package/src/core-plugins/tree-view/{dataset-info-modal.js → dataset-info-modal.jsx} +141 -141
- package/src/core-plugins/tree-view/{dataset-legend.js → dataset-legend.jsx} +122 -122
- package/src/core-plugins/tree-view/{defaults-container.js → defaults-container.jsx} +27 -27
- package/src/core-plugins/tree-view/download-bundle.js +156 -156
- package/src/core-plugins/tree-view/{favorites-container.js → favorites-container.jsx} +27 -27
- package/src/core-plugins/tree-view/index.js +25 -25
- package/src/core-plugins/tree-view/layer-subpanel/{defaults-toggle.js → defaults-toggle.jsx} +28 -28
- package/src/core-plugins/tree-view/layer-subpanel/{download-layer.js → download-layer.jsx} +54 -54
- package/src/core-plugins/tree-view/layer-subpanel/{favorites-toggle.js → favorites-toggle.jsx} +28 -28
- package/src/core-plugins/tree-view/layer-subpanel/{label-toggle.js → label-toggle.jsx} +15 -14
- package/src/core-plugins/tree-view/layer-subpanel/{layer-subpanel.js → layer-subpanel.jsx} +179 -180
- package/src/core-plugins/tree-view/layer-subpanel/{natick-rgb.js → natick-rgb.jsx} +49 -37
- package/src/core-plugins/tree-view/layer-subpanel/remove-layer.jsx +75 -0
- package/src/core-plugins/tree-view/{tree-list-container.js → tree-list-container.jsx} +2 -5
- package/src/core-plugins/tree-view/{tree-list-item-dataset.js → tree-list-item-dataset.jsx} +1 -1
- package/src/core-plugins/tree-view/{tree-list-item-folder.js → tree-list-item-folder.jsx} +161 -163
- package/src/core-plugins/tree-view/{tree-list-item.js → tree-list-item.jsx} +2 -2
- package/src/core-plugins/tree-view/{tree-list.js → tree-list.jsx} +37 -29
- package/src/core-plugins/tree-view/{tree-view-panel.js → tree-view-panel.jsx} +139 -148
- package/src/core-plugins/tree-view/tree-view-toolbar/{add-all.js → add-all.jsx} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{defaults.js → defaults.jsx} +40 -40
- package/src/core-plugins/tree-view/tree-view-toolbar/{favorites.js → favorites.jsx} +40 -40
- package/src/core-plugins/tree-view/tree-view-toolbar/{remove-all.js → remove-all.jsx} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{toggle-expand.js → toggle-expand.jsx} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{toggle-filter.js → toggle-filter.jsx} +1 -1
- package/src/core-plugins/zoom-home/bundle.js +28 -22
- package/src/core-plugins/zoom-home/index.js +5 -3
- package/src/core-plugins/zoom-home/{zoom-home-button.js → zoom-home-button.jsx} +2 -2
- package/src/core-plugins/zoom-in-out/index.js +19 -14
- package/src/core-plugins/zoom-in-out/{zoom-in-button.js → zoom-in-button.jsx} +7 -10
- package/src/core-plugins/zoom-in-out/{zoom-out-button.js → zoom-out-button.jsx} +7 -10
- package/src/core-plugins/zoom-level/bundle.js +35 -32
- package/src/core-plugins/zoom-level/index.js +17 -16
- package/src/core-plugins/zoom-level/{zoom-indicator.js → zoom-indicator.jsx} +34 -35
- package/src/core-plugins/zoom-to-box/bundle.js +52 -42
- package/src/core-plugins/zoom-to-box/{zoom-to-box-button.js → zoom-to-box-button.jsx} +9 -13
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.css +399 -124
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.min.css +8075 -3
- package/src/css/_deprecated_bootstrap/css/bootstrap-simplex.min.css +7320 -3
- package/src/css/_deprecated_bootstrap/css/bootstrap.css +582 -202
- package/src/css/_deprecated_bootstrap/css/bootstrap.css.map +142 -1
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css +7128 -2
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css.map +143 -1
- package/src/css/bg-colors.css +120 -120
- package/src/css/corpsmap-namespaced.css +9505 -9505
- package/src/css/corpsmap.css +10067 -9161
- package/src/css/navigation.css +174 -174
- package/src/index.css +68 -0
- package/src/{index.js → index.jsx} +113 -109
- package/src/main.jsx +3 -0
- package/src/openlayers-utils/format-utilities.js +87 -71
- package/src/openlayers-utils/layer-utilities.js +309 -302
- package/src/openlayers-utils/vector-style.js +131 -131
- package/src/utils/load-plugins.test.js +35 -35
- package/src/utils/redux-bundler-react.jsx +69 -0
- package/src/utils/scale-to-zoom-level.js +18 -22
- package/.babelrc +0 -7
- package/css/corpsmap.css +0 -10178
- package/fonts/cm.eot +0 -0
- package/fonts/cm.svg +0 -27
- package/fonts/cm.ttf +0 -0
- package/fonts/cm.woff +0 -0
- package/fonts/glyphicons-halflings-regular.eot +0 -0
- package/fonts/glyphicons-halflings-regular.svg +0 -288
- package/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/fonts/glyphicons-halflings-regular.woff +0 -0
- package/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/fonts/maki.eot +0 -0
- package/fonts/maki.svg +0 -98
- package/fonts/maki.ttf +0 -0
- package/fonts/maki.woff +0 -0
- package/fonts/mapskin.eot +0 -0
- package/fonts/mapskin.svg +0 -282
- package/fonts/mapskin.ttf +0 -0
- package/fonts/mapskin.woff +0 -0
- package/fonts/materialdesignicons-webfont.eot +0 -0
- package/fonts/materialdesignicons-webfont.svg +0 -7467
- package/fonts/materialdesignicons-webfont.ttf +0 -0
- package/fonts/materialdesignicons-webfont.woff +0 -0
- package/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/fonts/roboto/Roboto-Black.ttf +0 -0
- package/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
- package/fonts/roboto/Roboto-Bold.ttf +0 -0
- package/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
- package/fonts/roboto/Roboto-Italic.ttf +0 -0
- package/fonts/roboto/Roboto-Light.ttf +0 -0
- package/fonts/roboto/Roboto-LightItalic.ttf +0 -0
- package/fonts/roboto/Roboto-Medium.ttf +0 -0
- package/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
- package/fonts/roboto/Roboto-Regular.ttf +0 -0
- package/fonts/roboto/Roboto-Thin.ttf +0 -0
- package/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
- package/index.js +0 -5
- package/lib/dev.js +0 -171156
- package/lib/prod.js +0 -171070
- package/rollup.config.js +0 -50
- package/src/application-bundles/create-ol-map-bundle.js +0 -257
- package/src/application-bundles/map-view-bundle.js +0 -312
- package/src/application-containers/map.js +0 -45
- package/src/application-containers/old_corpsmap.js +0 -97
- package/src/application-containers/right-sidebar.js +0 -41
- package/src/application-containers/secondary-panel.js +0 -0
- package/src/application-containers/south-region.js +0 -79
- package/src/application-containers/upper-right-toolbar.js +0 -27
- package/src/application-controls/tree-list-item.js +0 -71
- package/src/core-plugins/add-data/add-shapefile.js +0 -43
- package/src/core-plugins/basemap-switcher/basemap-switcher-list-item copy.js +0 -59
- package/src/core-plugins/bookmarks/bookmark-panel.js +0 -157
- package/src/core-plugins/catalog/catalog-button.js +0 -36
- package/src/core-plugins/catalog/catalog-list-item.js +0 -83
- package/src/core-plugins/catalog/catalog-list.js +0 -70
- package/src/core-plugins/coordinate-display/bundle.js +0 -246
- package/src/core-plugins/draw-tools/draw-button.js +0 -192
- package/src/core-plugins/identify/listeners/geojson.js +0 -158
- package/src/core-plugins/login/login-button.js +0 -49
- package/src/core-plugins/permalink/permalink-modal.js +0 -64
- package/src/core-plugins/resources/resources-button.js +0 -44
- package/src/core-plugins/three-d/three-d-button.js +0 -44
- package/src/core-plugins/tree-view/layer-subpanel/remove-layer.js +0 -61
- /package/src/application-controls/{basic-toolbar-menu-divider.js → basic-toolbar-menu-divider.jsx} +0 -0
- /package/src/application-controls/{basic-toolbar-menu-item.js → basic-toolbar-menu-item.jsx} +0 -0
- /package/src/application-controls/{basic-toolbar-menu-up.js → basic-toolbar-menu-up.jsx} +0 -0
- /package/src/application-controls/{basic-toolbar-menu.js → basic-toolbar-menu.jsx} +0 -0
- /package/src/application-controls/{basic-toolbar-submenu.js → basic-toolbar-submenu.jsx} +0 -0
- /package/src/application-controls/{loading-indicator.js → loading-indicator.jsx} +0 -0
- /package/src/application-controls/{search-input.js → search-input.jsx} +0 -0
- /package/src/application-controls/{search-results-list.js → search-results-list.jsx} +0 -0
- /package/src/application-controls/{tree-list.js → tree-list.jsx} +0 -0
- /package/src/application-controls/{tree-view.js → tree-view.jsx} +0 -0
- /package/src/core-plugins/basemap-switcher/{basemap-switcher-button.js → basemap-switcher-button.jsx} +0 -0
- /package/src/core-plugins/bookmarks/{bookmark-button.js → bookmark-button.jsx} +0 -0
- /package/src/core-plugins/catalog/{catalog-error-item.js → catalog-error-item.jsx} +0 -0
- /package/src/core-plugins/catalog/{catalog-list-item-loader.js → catalog-list-item-loader.jsx} +0 -0
- /package/src/core-plugins/coordinate-display/{coordinate-display-proj-item.js → coordinate-display-proj-item.jsx} +0 -0
- /package/src/core-plugins/draw-tools/{draw-save-bundle.js → draw-save-bundle.jsx} +0 -0
- /package/src/core-plugins/draw-tools/{draw-tool-item.js → draw-tool-item.jsx} +0 -0
- /package/src/core-plugins/identify/{identify-popup.js → identify-popup.jsx} +0 -0
- /package/src/core-plugins/identify/{identify-sidebar-list.js → identify-sidebar-list.jsx} +0 -0
- /package/src/core-plugins/legend/{legend-button.js → legend-button.jsx} +0 -0
- /package/src/core-plugins/legend/{legend-item.js → legend-item.jsx} +0 -0
- /package/src/core-plugins/theme-switcher/{theme-switcher-button.js → theme-switcher-button.jsx} +0 -0
- /package/src/core-plugins/tree-view/{boundary-drop-target.js → boundary-drop-target.jsx} +0 -0
- /package/src/core-plugins/tree-view/layer-subpanel/{natick-rgb-options.js → natick-rgb-options.jsx} +0 -0
- /package/src/core-plugins/tree-view/layer-subpanel/{opacity-slider.js → opacity-slider.jsx} +0 -0
- /package/src/core-plugins/tree-view/{tree-view-button.js → tree-view-button.jsx} +0 -0
- /package/src/core-plugins/zoom-to-box/{index.js → index.jsx} +0 -0
- /package/src/utils/{plugin-region.js → plugin-region.jsx} +0 -0
|
@@ -1,100 +1,122 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
// import React from "react";
|
|
2
|
+
|
|
3
|
+
// const Map = ({ name }) => {
|
|
4
|
+
// return (
|
|
5
|
+
// <div style={{ padding: "10px", border: "1px solid blue" }}>
|
|
6
|
+
// <h3>React 19 Module Component</h3>
|
|
7
|
+
// <p>Hello, {name}!</p>
|
|
8
|
+
// </div>
|
|
9
|
+
// );
|
|
10
|
+
// };
|
|
11
|
+
|
|
12
|
+
// export default Map;
|
|
13
|
+
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Provider } from "../utils/redux-bundler-react";
|
|
16
|
+
import Corpsmap from "../application-containers/corpsmap";
|
|
17
|
+
import getStore from "../application-bundles";
|
|
18
|
+
import cache from "../utils/cache";
|
|
19
|
+
import loadPlugins from "../utils/load-plugins";
|
|
20
|
+
import config from "../config/default-config.js";
|
|
21
|
+
import pkg from "../../package.json";
|
|
22
|
+
|
|
23
|
+
import "ol/ol.css";
|
|
24
|
+
import "../css/mdi/css/materialdesignicons.min.css";
|
|
25
|
+
import "../css/mapskin/css/mapskin.min.css";
|
|
26
|
+
import "../css/navigation.css";
|
|
27
|
+
import "../css/cm-icons/css/cm-icons.css";
|
|
28
|
+
import "../css/loading-indicator.css";
|
|
29
|
+
import "../css/corpsmap-namespaced.css";
|
|
30
|
+
|
|
31
|
+
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
32
|
+
|
|
33
|
+
class Map extends React.Component {
|
|
34
|
+
constructor(props) {
|
|
35
|
+
super(props);
|
|
36
|
+
this.state = {
|
|
37
|
+
store: null,
|
|
38
|
+
};
|
|
39
|
+
this.getStore = this.getStore.bind(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
getStore() {
|
|
43
|
+
return this.state.store;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
componentDidMount() {
|
|
47
|
+
this._isMounted = true;
|
|
48
|
+
const {
|
|
49
|
+
mapConfig = {},
|
|
50
|
+
plugins = [],
|
|
51
|
+
height,
|
|
52
|
+
theme,
|
|
53
|
+
themeNavSize,
|
|
54
|
+
basemaps,
|
|
55
|
+
basemapImageIDs = [],
|
|
56
|
+
limitMapExtent,
|
|
57
|
+
} = this.props;
|
|
58
|
+
|
|
59
|
+
cache.getAll().then((initialData) => {
|
|
60
|
+
initialData.config = {
|
|
61
|
+
default: Object.assign({}, config, mapConfig),
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
if (basemaps) {
|
|
65
|
+
basemaps.forEach((basemap) => {
|
|
66
|
+
initialData.config.default.basemaps.push(basemap);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
console.log(basemaps);
|
|
70
|
+
console.log(initialData);
|
|
71
|
+
initialData.config.default.basemapImageIDs = basemapImageIDs;
|
|
72
|
+
|
|
73
|
+
if (height) {
|
|
74
|
+
initialData.vLayout = {
|
|
75
|
+
height: height,
|
|
76
|
+
hNorth: 1,
|
|
77
|
+
hSouth: 0,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (theme) {
|
|
82
|
+
const themeName = theme.indexOf("bg-") === -1 ? `bg-${theme}` : theme;
|
|
83
|
+
initialData.theme = {
|
|
84
|
+
theme: themeName,
|
|
85
|
+
iconSize: themeNavSize || "default",
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (limitMapExtent) {
|
|
90
|
+
initialData.config.default.limitMapExtent = limitMapExtent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const store = getStore(initialData);
|
|
94
|
+
loadPlugins(store, plugins);
|
|
95
|
+
|
|
96
|
+
window.internalStore = store;
|
|
97
|
+
|
|
98
|
+
if (this._isMounted) {
|
|
99
|
+
this.setState({
|
|
100
|
+
store: store,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
componentWillUnmount() {
|
|
107
|
+
this._isMounted = false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
render() {
|
|
111
|
+
const { store } = this.state;
|
|
112
|
+
if (!store) return null;
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<Provider store={store}>
|
|
116
|
+
<Corpsmap {...this.props} />
|
|
117
|
+
</Provider>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default Map;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
let defaultMapboxToken =
|
|
1
|
+
let defaultMapboxToken =
|
|
2
|
+
"pk.eyJ1IjoidXNhY2UiLCJhIjoiY2p4YW5hdjR6MThoZDNubG1mdG1rYXR1dSJ9.1jDEJhe6OP-e6iZNeEtzjA";
|
|
2
3
|
// Set value REACT_APP_MAPBOX_TOKEN in application. For instance, Corpsmap-orm, FUDSMIS
|
|
3
4
|
// For localhost create .env.development REACT_APP_MAPBOX_TOKEN="mapboxToken"
|
|
4
5
|
// use token if it is undefined
|
|
5
|
-
let mapboxTokenEnvVariable = `${process.env.REACT_APP_MAPBOX_TOKEN}`;
|
|
6
|
-
let
|
|
6
|
+
// let mapboxTokenEnvVariable = `${process.env.REACT_APP_MAPBOX_TOKEN}`;
|
|
7
|
+
let mapboxTokenEnvVariable = `${import.meta.env.VITE_APP_CM_ENV_MAPBOX_TOKEN}`;
|
|
8
|
+
|
|
9
|
+
let mapboxToken =
|
|
10
|
+
mapboxTokenEnvVariable === "undefined"
|
|
11
|
+
? defaultMapboxToken
|
|
12
|
+
: mapboxTokenEnvVariable;
|
|
7
13
|
|
|
8
14
|
const config = {
|
|
9
15
|
map: {
|
|
@@ -20,7 +26,7 @@ const config = {
|
|
|
20
26
|
},
|
|
21
27
|
dim: "2d",
|
|
22
28
|
theme: "bg-blue-chambray",
|
|
23
|
-
mapboxToken: mapboxToken
|
|
29
|
+
mapboxToken: mapboxToken,
|
|
24
30
|
basemaps: [
|
|
25
31
|
{
|
|
26
32
|
id: "OpenStreetMap",
|
|
@@ -29,7 +35,7 @@ const config = {
|
|
|
29
35
|
maxZoom: 19,
|
|
30
36
|
attributions:
|
|
31
37
|
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
32
|
-
visible: true
|
|
38
|
+
visible: true,
|
|
33
39
|
},
|
|
34
40
|
// {
|
|
35
41
|
// id: "MapBoxStreets",
|
|
@@ -45,13 +51,12 @@ const config = {
|
|
|
45
51
|
{
|
|
46
52
|
id: "MapBoxStreets",
|
|
47
53
|
name: "MapBox Streets",
|
|
48
|
-
url:
|
|
49
|
-
"https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
54
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
50
55
|
attributions:
|
|
51
56
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
52
57
|
subdomains: "abcd",
|
|
53
58
|
accessToken: mapboxToken,
|
|
54
|
-
visible: false
|
|
59
|
+
visible: false,
|
|
55
60
|
},
|
|
56
61
|
// {
|
|
57
62
|
// id: "MapBoxAerial",
|
|
@@ -67,13 +72,12 @@ const config = {
|
|
|
67
72
|
{
|
|
68
73
|
id: "MapBoxAerial",
|
|
69
74
|
name: "MapBox Aerial",
|
|
70
|
-
url:
|
|
71
|
-
"https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
75
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
72
76
|
attributions:
|
|
73
77
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
74
78
|
subdomains: "abcd",
|
|
75
79
|
accessToken: mapboxToken,
|
|
76
|
-
visible: false
|
|
80
|
+
visible: false,
|
|
77
81
|
},
|
|
78
82
|
// {
|
|
79
83
|
// id: "MapBoxOutdoor",
|
|
@@ -89,135 +93,121 @@ const config = {
|
|
|
89
93
|
{
|
|
90
94
|
id: "MapBoxOutdoor",
|
|
91
95
|
name: "MapBox Outdoor",
|
|
92
|
-
url:
|
|
93
|
-
"https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
96
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
94
97
|
attributions:
|
|
95
98
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
96
99
|
subdomains: "abcd",
|
|
97
100
|
accessToken: mapboxToken,
|
|
98
|
-
visible: false
|
|
101
|
+
visible: false,
|
|
99
102
|
},
|
|
100
103
|
{
|
|
101
104
|
id: "Monochrome Light",
|
|
102
105
|
name: "Monochrome Light",
|
|
103
|
-
url:
|
|
104
|
-
"https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
106
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
105
107
|
attributions:
|
|
106
108
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
107
109
|
subdomains: "abcd",
|
|
108
110
|
accessToken: mapboxToken,
|
|
109
|
-
visible: false
|
|
111
|
+
visible: false,
|
|
110
112
|
},
|
|
111
113
|
{
|
|
112
114
|
id: "Monochrome Dark",
|
|
113
115
|
name: "Monochrome Dark",
|
|
114
|
-
url:
|
|
115
|
-
"https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
116
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
116
117
|
attributions:
|
|
117
118
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
118
119
|
subdomains: "abcd",
|
|
119
120
|
accessToken: mapboxToken,
|
|
120
|
-
visible: false
|
|
121
|
+
visible: false,
|
|
121
122
|
},
|
|
122
123
|
{
|
|
123
124
|
id: "Navigation Dark",
|
|
124
125
|
name: "Navigation Dark",
|
|
125
|
-
url:
|
|
126
|
-
"https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
126
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
127
127
|
attributions:
|
|
128
128
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
129
129
|
subdomains: "abcd",
|
|
130
130
|
accessToken: mapboxToken,
|
|
131
|
-
visible: false
|
|
131
|
+
visible: false,
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
id: "Navigation Light",
|
|
135
135
|
name: "Navigation Light",
|
|
136
|
-
url:
|
|
137
|
-
"https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
136
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
138
137
|
attributions:
|
|
139
138
|
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
140
139
|
subdomains: "abcd",
|
|
141
140
|
accessToken: mapboxToken,
|
|
142
|
-
visible: false
|
|
141
|
+
visible: false,
|
|
143
142
|
},
|
|
144
143
|
{
|
|
145
144
|
id: "EsriWorldStreetMap",
|
|
146
145
|
name: "ESRI Streetmap",
|
|
147
|
-
url:
|
|
148
|
-
"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
|
|
146
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
|
|
149
147
|
attributions:
|
|
150
148
|
"Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
|
|
151
|
-
visible: false
|
|
149
|
+
visible: false,
|
|
152
150
|
},
|
|
153
151
|
{
|
|
154
152
|
id: "EsriWorldImagery",
|
|
155
153
|
name: "ESRI World Imagery",
|
|
156
|
-
url:
|
|
157
|
-
"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
|
154
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
|
158
155
|
attributions:
|
|
159
156
|
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
160
|
-
visible: false
|
|
157
|
+
visible: false,
|
|
161
158
|
},
|
|
162
159
|
{
|
|
163
160
|
id: "EsriUSATopoMaps",
|
|
164
161
|
name: "ESRI Topo Maps",
|
|
165
|
-
url:
|
|
166
|
-
"https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",
|
|
162
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",
|
|
167
163
|
attributions:
|
|
168
164
|
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
169
|
-
visible: false
|
|
165
|
+
visible: false,
|
|
170
166
|
},
|
|
171
167
|
{
|
|
172
168
|
id: "EsriWorldShadedRelief",
|
|
173
169
|
name: "ESRI World Hillshade",
|
|
174
|
-
url:
|
|
175
|
-
"https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",
|
|
170
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",
|
|
176
171
|
attributions:
|
|
177
172
|
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
178
|
-
visible: false
|
|
173
|
+
visible: false,
|
|
179
174
|
},
|
|
180
175
|
{
|
|
181
176
|
id: "EsriWorldOcean",
|
|
182
177
|
name: "ESRI World Ocean",
|
|
183
|
-
url:
|
|
184
|
-
"https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",
|
|
178
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",
|
|
185
179
|
attributions:
|
|
186
180
|
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
187
|
-
visible: false
|
|
181
|
+
visible: false,
|
|
188
182
|
},
|
|
189
183
|
{
|
|
190
184
|
id: "USGSImageryTopo",
|
|
191
185
|
name: "USGS Imagery/Topo",
|
|
192
|
-
url:
|
|
193
|
-
"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",
|
|
186
|
+
url: "https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",
|
|
194
187
|
attributions:
|
|
195
188
|
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
196
|
-
visible: false
|
|
189
|
+
visible: false,
|
|
197
190
|
},
|
|
198
191
|
{
|
|
199
192
|
id: "CartoDBDarkMatter",
|
|
200
193
|
name: "CartoDB Dark Matter",
|
|
201
|
-
url:
|
|
202
|
-
"https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
|
|
194
|
+
url: "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
|
|
203
195
|
attributions:
|
|
204
196
|
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://cartodb.com/attributionss">CartoDB</a>',
|
|
205
197
|
subdomains: "abcd",
|
|
206
198
|
maxZoom: 19,
|
|
207
|
-
visible: false
|
|
199
|
+
visible: false,
|
|
208
200
|
},
|
|
209
201
|
{
|
|
210
202
|
id: "CartoDBPositron",
|
|
211
203
|
name: "CartoDB Positron",
|
|
212
|
-
url:
|
|
213
|
-
"https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
|
|
204
|
+
url: "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
|
|
214
205
|
attributions:
|
|
215
206
|
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://cartodb.com/attributionss">CartoDB</a>',
|
|
216
207
|
subdomains: "abcd",
|
|
217
208
|
maxZoom: 19,
|
|
218
|
-
visible: false
|
|
209
|
+
visible: false,
|
|
219
210
|
},
|
|
220
|
-
|
|
221
211
|
],
|
|
222
212
|
datasetsDontUse: [
|
|
223
213
|
{
|
|
@@ -233,8 +223,7 @@ const config = {
|
|
|
233
223
|
tiled: 0,
|
|
234
224
|
displayName: "Foundational Project Area",
|
|
235
225
|
description: "",
|
|
236
|
-
url:
|
|
237
|
-
"https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",
|
|
226
|
+
url: "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",
|
|
238
227
|
grids: null,
|
|
239
228
|
layerList: "1",
|
|
240
229
|
attribution: null,
|
|
@@ -293,7 +282,7 @@ const config = {
|
|
|
293
282
|
})
|
|
294
283
|
return style;
|
|
295
284
|
}
|
|
296
|
-
)
|
|
285
|
+
)`,
|
|
297
286
|
},
|
|
298
287
|
{
|
|
299
288
|
id: null,
|
|
@@ -308,8 +297,7 @@ const config = {
|
|
|
308
297
|
tiled: 0,
|
|
309
298
|
displayName: "Divisions",
|
|
310
299
|
description: "",
|
|
311
|
-
url:
|
|
312
|
-
"https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",
|
|
300
|
+
url: "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",
|
|
313
301
|
grids: null,
|
|
314
302
|
layerList: "0",
|
|
315
303
|
attribution: null,
|
|
@@ -368,7 +356,7 @@ const config = {
|
|
|
368
356
|
})
|
|
369
357
|
return style;
|
|
370
358
|
}
|
|
371
|
-
)
|
|
359
|
+
)`,
|
|
372
360
|
},
|
|
373
361
|
{
|
|
374
362
|
id: null,
|
|
@@ -383,8 +371,7 @@ const config = {
|
|
|
383
371
|
tiled: 0,
|
|
384
372
|
displayName: "Dam Status",
|
|
385
373
|
description: "",
|
|
386
|
-
url:
|
|
387
|
-
"https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",
|
|
374
|
+
url: "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",
|
|
388
375
|
grids: null,
|
|
389
376
|
layerList: "ahpsfcst_minor",
|
|
390
377
|
attribution: null,
|
|
@@ -458,7 +445,7 @@ const config = {
|
|
|
458
445
|
});
|
|
459
446
|
return [pointStyle, labelStyle];
|
|
460
447
|
}
|
|
461
|
-
)
|
|
448
|
+
)`,
|
|
462
449
|
},
|
|
463
450
|
{
|
|
464
451
|
id: null,
|
|
@@ -473,8 +460,7 @@ const config = {
|
|
|
473
460
|
tiled: 0,
|
|
474
461
|
displayName: "Levee Data",
|
|
475
462
|
description: "Real time forecast values from NOAA. Updated hourly",
|
|
476
|
-
url:
|
|
477
|
-
"https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",
|
|
463
|
+
url: "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",
|
|
478
464
|
grids: null,
|
|
479
465
|
layerList: "ahpsfcst_minor",
|
|
480
466
|
attribution: null,
|
|
@@ -548,7 +534,7 @@ const config = {
|
|
|
548
534
|
});
|
|
549
535
|
return [pointStyle, labelStyle];
|
|
550
536
|
}
|
|
551
|
-
)
|
|
537
|
+
)`,
|
|
552
538
|
},
|
|
553
539
|
{
|
|
554
540
|
id: 13597,
|
|
@@ -563,8 +549,7 @@ const config = {
|
|
|
563
549
|
tiled: 1,
|
|
564
550
|
displayName: "Minor Flooding",
|
|
565
551
|
description: "Real time forecast values from NOAA. Updated hourly",
|
|
566
|
-
url:
|
|
567
|
-
"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",
|
|
552
|
+
url: "https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",
|
|
568
553
|
grids: null,
|
|
569
554
|
layerList: "ahpsfcst_minor",
|
|
570
555
|
attribution: null,
|
|
@@ -600,9 +585,9 @@ const config = {
|
|
|
600
585
|
labelDefault: 0,
|
|
601
586
|
labelEnabled: 0,
|
|
602
587
|
deep: 2,
|
|
603
|
-
path: "depricated"
|
|
604
|
-
}
|
|
605
|
-
]
|
|
588
|
+
path: "depricated",
|
|
589
|
+
},
|
|
590
|
+
],
|
|
606
591
|
};
|
|
607
592
|
|
|
608
593
|
export default config;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { connect } from "redux-bundler-react";
|
|
3
|
-
import {
|
|
4
|
-
BasicToolbarButton,
|
|
5
|
-
BasicToolbarMenu,
|
|
6
|
-
} from "../../application-controls";
|
|
7
|
-
import AddGeoJsonButton from "./add-geojson";
|
|
8
|
-
import AddShapefileButton from "./add-shapefile";
|
|
9
|
-
import AddKmlFileButton from "./add-kmlfile";
|
|
10
|
-
|
|
11
|
-
class AddDataButton extends React.Component {
|
|
12
|
-
constructor(props) {
|
|
13
|
-
super(props);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
render() {
|
|
17
|
-
return (
|
|
18
|
-
<BasicToolbarButton
|
|
19
|
-
enabled={true}
|
|
20
|
-
iconClass="mdi mdi-plus-box-multiple"
|
|
21
|
-
title="Add Data"
|
|
22
|
-
onDeactivate={() => {}}
|
|
23
|
-
>
|
|
24
|
-
<BasicToolbarMenu>
|
|
25
|
-
<AddGeoJsonButton />
|
|
26
|
-
<AddShapefileButton />
|
|
27
|
-
<AddKmlFileButton />
|
|
28
|
-
</BasicToolbarMenu>
|
|
29
|
-
</BasicToolbarButton>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default connect("doNotificationsFire", AddDataButton);
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../../utils/redux-bundler-react";
|
|
3
|
+
import {
|
|
4
|
+
BasicToolbarButton,
|
|
5
|
+
BasicToolbarMenu,
|
|
6
|
+
} from "../../application-controls";
|
|
7
|
+
import AddGeoJsonButton from "./add-geojson";
|
|
8
|
+
import AddShapefileButton from "./add-shapefile";
|
|
9
|
+
import AddKmlFileButton from "./add-kmlfile";
|
|
10
|
+
|
|
11
|
+
class AddDataButton extends React.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
render() {
|
|
17
|
+
return (
|
|
18
|
+
<BasicToolbarButton
|
|
19
|
+
enabled={true}
|
|
20
|
+
iconClass="mdi mdi-plus-box-multiple"
|
|
21
|
+
title="Add Data"
|
|
22
|
+
onDeactivate={() => {}}
|
|
23
|
+
>
|
|
24
|
+
<BasicToolbarMenu>
|
|
25
|
+
<AddGeoJsonButton />
|
|
26
|
+
<AddShapefileButton />
|
|
27
|
+
<AddKmlFileButton />
|
|
28
|
+
</BasicToolbarMenu>
|
|
29
|
+
</BasicToolbarButton>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default connect("doNotificationsFire", AddDataButton);
|