@corpsmap/corpsmap 4.0.36 → 4.1.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/README.md +33 -0
- package/dist/corpsmap.css +1 -0
- package/dist/corpsmap.es.js +63856 -0
- package/dist/corpsmap.umd.js +384 -0
- package/dist/vite.svg +1 -0
- package/package.json +73 -32
- package/src/App.css +42 -0
- package/src/App.jsx +12 -0
- package/src/application-bundles/_create-container-bundle.js +102 -0
- package/src/application-bundles/api-bundle.js +76 -0
- package/src/application-bundles/basic-toolbar-bundle.js +57 -0
- package/src/application-bundles/config-bundle.js +38 -0
- package/src/application-bundles/create-ol-map-bundle.jsx +278 -0
- package/src/application-bundles/export-bundle.js +125 -0
- package/src/application-bundles/identify-bundle.js +119 -0
- package/src/application-bundles/index.js +53 -0
- package/src/application-bundles/map-basemap-bundle.js +73 -0
- package/src/application-bundles/map-core-bundle.js +25 -0
- package/src/application-bundles/map-drawing-bundle.js +120 -0
- package/src/application-bundles/map-interaction-bundle.js +50 -0
- package/src/application-bundles/map-layers-bundle.js +816 -0
- package/src/application-bundles/map-proj-bundle.js +144 -0
- package/src/application-bundles/map-view-bundle.jsx +334 -0
- package/src/application-bundles/modal-window-bundle.js +5 -0
- package/src/application-bundles/notification-bundle.js +56 -0
- package/src/application-bundles/plugin-bundle.js +180 -0
- package/src/application-bundles/primary-panel-bundle.js +85 -0
- package/src/application-bundles/search-bundle.js +122 -0
- package/src/application-bundles/south-region-bundle.js +96 -0
- package/src/application-bundles/theme-bundle.js +45 -0
- package/src/application-bundles/vertical-layout-bundle.js +88 -0
- package/src/application-bundles/viewport-bundle.js +43 -0
- package/src/application-bundles/window-location-bundle.js +90 -0
- package/src/application-bundles-old/auth-bundle.js +130 -0
- package/src/application-bundles-old/config-bundle.js +29 -0
- package/src/application-bundles-old/ui-bundle.js +406 -0
- package/src/application-containers/basic-toolbar.jsx +24 -0
- package/src/application-containers/corpsmap.jsx +91 -0
- package/src/application-containers/left-sidebar.jsx +43 -0
- package/src/application-containers/lower-right-toolbar.jsx +29 -0
- package/src/application-containers/map.jsx +57 -0
- package/src/application-containers/modal-window.jsx +34 -0
- package/src/application-containers/north-region.jsx +26 -0
- package/src/application-containers/notification-pane.jsx +37 -0
- package/src/application-containers/notification-quadrant.jsx +20 -0
- package/src/application-containers/notification.jsx +91 -0
- package/src/application-containers/primary-panel.jsx +94 -0
- package/src/application-containers/right-sidebar.jsx +44 -0
- package/src/application-containers/south-region-tab.jsx +60 -0
- 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.jsx +124 -0
- package/src/application-controls/basic-toolbar-menu-divider.jsx +11 -0
- package/src/application-controls/basic-toolbar-menu-item.jsx +91 -0
- package/src/application-controls/basic-toolbar-menu-up.jsx +13 -0
- package/src/application-controls/basic-toolbar-menu.jsx +13 -0
- package/src/application-controls/basic-toolbar-submenu.jsx +14 -0
- package/src/application-controls/index.jsx +35 -0
- package/src/application-controls/loading-indicator.jsx +19 -0
- package/src/application-controls/search-input.jsx +55 -0
- package/src/application-controls/search-results-list-item.jsx +50 -0
- package/src/application-controls/search-results-list.jsx +19 -0
- package/src/application-controls/sidebar-button.jsx +69 -0
- package/src/application-controls/sidebar-panel-opener.jsx +63 -0
- package/src/application-controls/tree-list-folder.jsx +46 -0
- package/src/application-controls/tree-list-item.jsx +83 -0
- package/src/application-controls/tree-list.jsx +35 -0
- package/src/application-controls/tree-view.jsx +42 -0
- package/src/application-exports/map-provider.jsx +122 -0
- package/src/assets/react.svg +1 -0
- package/src/config/default-config.js +593 -0
- package/src/core-plugins/add-data/add-data-button.jsx +34 -0
- package/src/core-plugins/add-data/add-geojson.jsx +47 -0
- package/src/core-plugins/add-data/add-kmlfile.jsx +46 -0
- package/src/core-plugins/add-data/add-shapefile.jsx +47 -0
- package/src/core-plugins/add-data/bundle.js +226 -0
- package/src/core-plugins/add-data/index.js +15 -0
- package/src/core-plugins/basemap-switcher/basemap-switcher-button.jsx +18 -0
- package/src/core-plugins/basemap-switcher/basemap-switcher-list-item.jsx +48 -0
- package/src/core-plugins/basemap-switcher/basemap-switcher-list.jsx +37 -0
- package/src/core-plugins/basemap-switcher/index.js +13 -0
- package/src/core-plugins/bookmarks/bookmark-button.jsx +18 -0
- package/src/core-plugins/bookmarks/bookmark-list-item.jsx +79 -0
- package/src/core-plugins/bookmarks/bookmark-list.jsx +31 -0
- package/src/core-plugins/bookmarks/bookmark-panel.jsx +191 -0
- package/src/core-plugins/bookmarks/bundle.js +92 -0
- package/src/core-plugins/bookmarks/index.js +15 -0
- package/src/core-plugins/catalog/bundle.js +109 -0
- package/src/core-plugins/catalog/catalog-button.jsx +33 -0
- package/src/core-plugins/catalog/catalog-error-item.jsx +14 -0
- package/src/core-plugins/catalog/catalog-list-item-loader.jsx +12 -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.jsx +100 -0
- package/src/core-plugins/catalog/index.js +15 -0
- package/src/core-plugins/change-log/bundle.js +180 -0
- package/src/core-plugins/change-log/change-log-button.jsx +40 -0
- package/src/core-plugins/change-log/change-log-modal.jsx +190 -0
- package/src/core-plugins/change-log/index.js +15 -0
- package/src/core-plugins/change-log/select-district.jsx +73 -0
- package/src/core-plugins/contact-form/bundle.js +239 -0
- package/src/core-plugins/contact-form/index.js +17 -0
- package/src/core-plugins/contact-form/question-button.jsx +36 -0
- package/src/core-plugins/contact-form/question-modal.jsx +215 -0
- package/src/core-plugins/coordinate-display/bundle.jsx +269 -0
- package/src/core-plugins/coordinate-display/coordinate-display-bar.jsx +66 -0
- package/src/core-plugins/coordinate-display/coordinate-display-proj-item.jsx +60 -0
- package/src/core-plugins/coordinate-display/coordinate-display-settings.jsx +173 -0
- package/src/core-plugins/coordinate-display/coordinate-interaction-bar.jsx +60 -0
- package/src/core-plugins/coordinate-display/coordinate-lat-lon-input.jsx +35 -0
- package/src/core-plugins/coordinate-display/coordinate-popup.jsx +27 -0
- package/src/core-plugins/coordinate-display/index.js +20 -0
- package/src/core-plugins/draw-tools/create-draw-bundle.js +242 -0
- package/src/core-plugins/draw-tools/draw-button.jsx +204 -0
- package/src/core-plugins/draw-tools/draw-label-bundle.js +116 -0
- package/src/core-plugins/draw-tools/draw-modify-bundle.js +156 -0
- package/src/core-plugins/draw-tools/draw-save-bundle.jsx +181 -0
- package/src/core-plugins/draw-tools/draw-styles.js +110 -0
- package/src/core-plugins/draw-tools/draw-tool-item.jsx +67 -0
- package/src/core-plugins/draw-tools/index.js +34 -0
- package/src/core-plugins/draw-tools-old/create-draw-bundle.js +222 -0
- package/src/core-plugins/draw-tools-old/draw-button.js +189 -0
- package/src/core-plugins/draw-tools-old/draw-label-bundle.js +116 -0
- package/src/core-plugins/draw-tools-old/draw-modify-bundle.js +156 -0
- package/src/core-plugins/draw-tools-old/draw-styles.js +110 -0
- package/src/core-plugins/draw-tools-old/draw-tool-item.js +67 -0
- package/src/core-plugins/draw-tools-old/index.js +32 -0
- package/src/core-plugins/editor/bundle.js +472 -0
- package/src/core-plugins/editor/date-editor.js +63 -0
- package/src/core-plugins/editor/date-formatter.js +17 -0
- package/src/core-plugins/editor/editor-base.js +29 -0
- package/src/core-plugins/editor/editor-button.js +224 -0
- package/src/core-plugins/editor/editor-table.js +151 -0
- package/src/core-plugins/editor/index.js +15 -0
- package/src/core-plugins/editor/number-editor.js +57 -0
- package/src/core-plugins/editor/string-editor.js +42 -0
- package/src/core-plugins/geocoder/bundle.jsx +186 -0
- package/src/core-plugins/geocoder/index.js +15 -0
- package/src/core-plugins/geocoder/overlay.jsx +30 -0
- package/src/core-plugins/geocoder/search-bar.js copy.save +123 -0
- package/src/core-plugins/geocoder/search-bar.jsx +121 -0
- package/src/core-plugins/identify/bundle.jsx +709 -0
- package/src/core-plugins/identify/identify-buffer-section.jsx +52 -0
- package/src/core-plugins/identify/identify-buffer-settings.jsx +48 -0
- package/src/core-plugins/identify/identify-button.jsx +100 -0
- package/src/core-plugins/identify/identify-details-table.jsx +121 -0
- package/src/core-plugins/identify/identify-details.js +69 -0
- package/src/core-plugins/identify/identify-popup.jsx +136 -0
- package/src/core-plugins/identify/identify-sidebar-list-item.jsx +106 -0
- package/src/core-plugins/identify/identify-sidebar-list.jsx +63 -0
- package/src/core-plugins/identify/identify-sidebar.jsx +103 -0
- package/src/core-plugins/identify/identify-table-cell.jsx +49 -0
- package/src/core-plugins/identify/identify-table.jsx +319 -0
- package/src/core-plugins/identify/index.js +27 -0
- package/src/core-plugins/identify/listeners/arcgis.js +158 -0
- package/src/core-plugins/identify/listeners/geojson.jsx +164 -0
- package/src/core-plugins/identify/listeners/raster.js +89 -0
- package/src/core-plugins/identify/listeners/vector.jsx +106 -0
- package/src/core-plugins/identify-arcgis-rest/bundle.js +169 -0
- package/src/core-plugins/identify-arcgis-rest/index.js +10 -0
- package/src/core-plugins/identify-cm/bundle.js +82 -0
- package/src/core-plugins/identify-cm/index.js +10 -0
- package/src/core-plugins/identify-geojson/bundle.js +164 -0
- package/src/core-plugins/identify-geojson/index.js +10 -0
- package/src/core-plugins/identify-raster/bundle.js +89 -0
- package/src/core-plugins/identify-raster/index.js +10 -0
- package/src/core-plugins/identify-vector/bundle.jsx +135 -0
- package/src/core-plugins/identify-vector/index.js +10 -0
- package/src/core-plugins/identify-wms/bundle.js +138 -0
- package/src/core-plugins/identify-wms/index.js +10 -0
- package/src/core-plugins/legend/bundle.js +1044 -0
- package/src/core-plugins/legend/index.js +17 -0
- package/src/core-plugins/legend/legend-button.jsx +18 -0
- package/src/core-plugins/legend/legend-header.jsx +43 -0
- package/src/core-plugins/legend/legend-item-multiple.jsx +32 -0
- package/src/core-plugins/legend/legend-item.jsx +20 -0
- package/src/core-plugins/legend/legend-panel.jsx +73 -0
- package/src/core-plugins/login/index.js +13 -0
- package/src/core-plugins/login/login-button.jsx +49 -0
- package/src/core-plugins/map-loading-indicator/bundle.js +31 -0
- package/src/core-plugins/map-loading-indicator/index.js +17 -0
- package/src/core-plugins/map-loading-indicator/loading-indicator.jsx +30 -0
- package/src/core-plugins/measure-tools/bundle.js +286 -0
- package/src/core-plugins/measure-tools/index.js +15 -0
- package/src/core-plugins/measure-tools/measure-options.jsx +89 -0
- package/src/core-plugins/measure-tools/measure-tools-button.jsx +129 -0
- package/src/core-plugins/measure-tools/measure-utils.js +76 -0
- package/src/core-plugins/permalink/bundle.js +57 -0
- package/src/core-plugins/permalink/index.js +15 -0
- package/src/core-plugins/permalink/permalink-button.jsx +38 -0
- package/src/core-plugins/permalink/permalink-modal.jsx +67 -0
- package/src/core-plugins/print-map/bundle.jsx +316 -0
- package/src/core-plugins/print-map/button.jsx +17 -0
- package/src/core-plugins/print-map/index.js +17 -0
- package/src/core-plugins/resources/bundle.js +96 -0
- package/src/core-plugins/resources/index.js +15 -0
- package/src/core-plugins/resources/resources-button.jsx +40 -0
- package/src/core-plugins/resources/resources-modal.jsx +151 -0
- package/src/core-plugins/rotate-north/index.js +13 -0
- package/src/core-plugins/rotate-north/rotate-north-button.jsx +38 -0
- package/src/core-plugins/theme-switcher/bundle.js +16 -0
- package/src/core-plugins/theme-switcher/index.js +15 -0
- package/src/core-plugins/theme-switcher/theme-list-item.jsx +25 -0
- package/src/core-plugins/theme-switcher/theme-list.jsx +28 -0
- package/src/core-plugins/theme-switcher/theme-switcher-button.jsx +18 -0
- package/src/core-plugins/theme-switcher/themes.js +121 -0
- package/src/core-plugins/three-d/index.js +13 -0
- package/src/core-plugins/three-d/three-d-button.jsx +44 -0
- package/src/core-plugins/tree-view/boundary-drop-target.jsx +42 -0
- package/src/core-plugins/tree-view/bundle.js +513 -0
- package/src/core-plugins/tree-view/dataset-info-modal.jsx +141 -0
- package/src/core-plugins/tree-view/dataset-legend.jsx +122 -0
- package/src/core-plugins/tree-view/defaults-container.jsx +27 -0
- package/src/core-plugins/tree-view/download-bundle.js +156 -0
- package/src/core-plugins/tree-view/favorites-container.jsx +27 -0
- package/src/core-plugins/tree-view/index.js +25 -0
- package/src/core-plugins/tree-view/layer-subpanel/defaults-toggle.jsx +28 -0
- package/src/core-plugins/tree-view/layer-subpanel/download-layer.jsx +54 -0
- package/src/core-plugins/tree-view/layer-subpanel/favorites-toggle.jsx +28 -0
- package/src/core-plugins/tree-view/layer-subpanel/label-toggle.jsx +39 -0
- package/src/core-plugins/tree-view/layer-subpanel/layer-subpanel.jsx +179 -0
- package/src/core-plugins/tree-view/layer-subpanel/natick-rgb-options.jsx +66 -0
- package/src/core-plugins/tree-view/layer-subpanel/natick-rgb.jsx +112 -0
- package/src/core-plugins/tree-view/layer-subpanel/opacity-slider.jsx +51 -0
- package/src/core-plugins/tree-view/layer-subpanel/remove-layer.jsx +75 -0
- package/src/core-plugins/tree-view/tree-list-container.jsx +22 -0
- package/src/core-plugins/tree-view/tree-list-item-dataset.jsx +174 -0
- package/src/core-plugins/tree-view/tree-list-item-folder.jsx +161 -0
- package/src/core-plugins/tree-view/tree-list-item.jsx +35 -0
- package/src/core-plugins/tree-view/tree-list.jsx +37 -0
- package/src/core-plugins/tree-view/tree-view-button.jsx +18 -0
- package/src/core-plugins/tree-view/tree-view-panel.jsx +139 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/add-all.jsx +28 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/defaults.jsx +40 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/favorites.jsx +40 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/remove-all.jsx +28 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/toggle-expand.jsx +47 -0
- package/src/core-plugins/tree-view/tree-view-toolbar/toggle-filter.jsx +39 -0
- package/src/core-plugins/vector-search/bundle.js +96 -0
- package/src/core-plugins/vector-search/index.js +10 -0
- package/src/core-plugins/zoom-home/bundle.js +77 -0
- package/src/core-plugins/zoom-home/index.js +19 -0
- package/src/core-plugins/zoom-home/zoom-home-button.jsx +57 -0
- package/src/core-plugins/zoom-in-out/index.js +23 -0
- package/src/core-plugins/zoom-in-out/zoom-in-button.jsx +28 -0
- package/src/core-plugins/zoom-in-out/zoom-out-button.jsx +28 -0
- package/src/core-plugins/zoom-level/bundle.js +35 -0
- package/src/core-plugins/zoom-level/index.js +17 -0
- package/src/core-plugins/zoom-level/zoom-indicator.jsx +34 -0
- package/src/core-plugins/zoom-to-box/bundle.js +80 -0
- package/src/core-plugins/zoom-to-box/index.jsx +15 -0
- package/src/core-plugins/zoom-to-box/zoom-to-box-button.jsx +53 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.css +7606 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.min.css +8083 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-simplex.min.css +7328 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-theme.css +587 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-theme.css.map +1 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-theme.min.css +6 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap-theme.min.css.map +1 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap.css +7137 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap.css.map +142 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css +7132 -0
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css.map +143 -0
- package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/css/_deprecated_bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/css/_deprecated_bootstrap/js/bootstrap.js +2377 -0
- package/src/css/_deprecated_bootstrap/js/bootstrap.min.js +7 -0
- package/src/css/_deprecated_bootstrap/js/npm.js +13 -0
- package/src/css/_deprecated_maki/css/maki.css +304 -0
- package/src/css/_deprecated_maki/fonts/maki.eot +0 -0
- package/src/css/_deprecated_maki/fonts/maki.svg +98 -0
- package/src/css/_deprecated_maki/fonts/maki.ttf +0 -0
- package/src/css/_deprecated_maki/fonts/maki.woff +0 -0
- package/src/css/bg-colors.css +121 -0
- package/src/css/cm-icons/css/cm-icons.css +90 -0
- package/src/css/cm-icons/fonts/cm.eot +0 -0
- package/src/css/cm-icons/fonts/cm.svg +27 -0
- package/src/css/cm-icons/fonts/cm.ttf +0 -0
- package/src/css/cm-icons/fonts/cm.woff +0 -0
- package/src/css/corpsmap-namespaced.css +9505 -0
- package/src/css/corpsmap.css +10178 -0
- package/src/css/loading-indicator.css +109 -0
- package/src/css/mapskin/OFL.txt +94 -0
- package/src/css/mapskin/css/mapskin.css +815 -0
- package/src/css/mapskin/css/mapskin.min.css +8 -0
- package/src/css/mapskin/fonts/mapskin.eot +0 -0
- package/src/css/mapskin/fonts/mapskin.svg +282 -0
- package/src/css/mapskin/fonts/mapskin.ttf +0 -0
- package/src/css/mapskin/fonts/mapskin.woff +0 -0
- package/src/css/mdi/.github/ISSUE_TEMPLATE.md +3 -0
- package/src/css/mdi/README.md +24 -0
- package/src/css/mdi/bower.json +22 -0
- package/src/css/mdi/css/materialdesignicons.css +18654 -0
- package/src/css/mdi/css/materialdesignicons.css.map +16 -0
- package/src/css/mdi/css/materialdesignicons.min.css +3 -0
- package/src/css/mdi/css/materialdesignicons.min.css.map +16 -0
- package/src/css/mdi/fonts/materialdesignicons-webfont.eot +0 -0
- package/src/css/mdi/fonts/materialdesignicons-webfont.ttf +0 -0
- package/src/css/mdi/fonts/materialdesignicons-webfont.woff +0 -0
- package/src/css/mdi/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/src/css/mdi/license.md +97 -0
- package/src/css/mdi/package.json +37 -0
- package/src/css/mdi/preview.html +717 -0
- package/src/css/mdi/scss/_animated.scss +27 -0
- package/src/css/mdi/scss/_core.scss +10 -0
- package/src/css/mdi/scss/_extras.scss +65 -0
- package/src/css/mdi/scss/_functions.scss +20 -0
- package/src/css/mdi/scss/_icons.scss +10 -0
- package/src/css/mdi/scss/_path.scss +10 -0
- package/src/css/mdi/scss/_variables.scss +4606 -0
- package/src/css/mdi/scss/materialdesignicons.scss +8 -0
- package/src/css/navigation.css +174 -0
- package/src/css/parse-css.js +26 -0
- package/src/css/reset.css +48 -0
- package/src/index.css +68 -0
- package/src/index.jsx +113 -0
- package/src/main.jsx +3 -0
- package/src/openlayers-utils/format-utilities.js +178 -0
- package/src/openlayers-utils/interaction-creator.js +31 -0
- package/src/openlayers-utils/layer-utilities.js +309 -0
- package/src/openlayers-utils/map-utils.js +25 -0
- package/src/openlayers-utils/resource-utilities.js +38 -0
- package/src/openlayers-utils/vector-style.js +131 -0
- package/src/utils/cache.js +6 -0
- package/src/utils/check-webgl.js +6 -0
- package/src/utils/error-boundary.js +26 -0
- package/src/utils/load-plugins.js +32 -0
- package/src/utils/load-plugins.test.js +36 -0
- package/src/utils/plugin-region.jsx +26 -0
- package/src/utils/redux-bundler-react.jsx +69 -0
- package/src/utils/scale-to-zoom-level.js +37 -0
- package/src/utils/vector-styles.js +7 -0
- package/.babelrc +0 -7
- package/config/basemaps.js +0 -22
- package/css/corpsmap.css +0 -7982
- package/index.js +0 -5
- package/lib/dev.js +0 -41440
- package/lib/prod.js +0 -41406
- package/rollup.config.js +0 -30
- package/src/bundles/DEPRECATE_map-view-bundle.js +0 -34
- package/src/bundles/_template-bundle-creator.js +0 -49
- package/src/bundles/create-basemap-bundle-old.js +0 -107
- package/src/bundles/create-basemap-bundle.js +0 -133
- package/src/bundles/create-ol-map-bundle.js +0 -166
- package/src/bundles/create-ol-view-bundle.js +0 -79
- package/src/bundles/map-basemap-bundle.js +0 -42
- package/src/bundles/map-bundle.js +0 -90
- package/src/bundles/map-interaction-bundle.js +0 -57
- package/src/bundles/map-measure-bundle.js +0 -61
- package/src/components/BasemapSwitcherLight/BasemapMenu.js +0 -26
- package/src/components/BasemapSwitcherLight/BasemapMenuItem.js +0 -31
- package/src/components/BasemapSwitcherLight/index.js +0 -25
- package/src/components/Control-Regions/BtnContainer.js +0 -20
- package/src/components/Control-Regions/Right.js +0 -30
- package/src/components/Control-Regions/Top.js +0 -19
- package/src/components/Control-Regions/index.js +0 -4
- package/src/components/LayerTree/index.js +0 -10
- package/src/components/Map.js +0 -56
- package/src/components/MeasureTool/Content.js +0 -53
- package/src/components/MeasureTool/index.js +0 -169
- package/src/components/MeasureTool/measure-utils.js +0 -69
- package/src/components/Zoom/index.js +0 -48
- package/src/components/index.js +0 -3
- package/src/index.js +0 -10
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
let defaultMapboxToken =
|
|
2
|
+
"pk.eyJ1IjoidXNhY2UiLCJhIjoiY2p4YW5hdjR6MThoZDNubG1mdG1rYXR1dSJ9.1jDEJhe6OP-e6iZNeEtzjA";
|
|
3
|
+
// Set value REACT_APP_MAPBOX_TOKEN in application. For instance, Corpsmap-orm, FUDSMIS
|
|
4
|
+
// For localhost create .env.development REACT_APP_MAPBOX_TOKEN="mapboxToken"
|
|
5
|
+
// use token if it is undefined
|
|
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;
|
|
13
|
+
|
|
14
|
+
const config = {
|
|
15
|
+
map: {
|
|
16
|
+
basemap: 0,
|
|
17
|
+
centerX: -98.579,
|
|
18
|
+
centerY: 39.828,
|
|
19
|
+
centerZ: 7,
|
|
20
|
+
altitude3d: 14771168,
|
|
21
|
+
heading3d: 0,
|
|
22
|
+
tilt3d: 0,
|
|
23
|
+
minzoom: 0,
|
|
24
|
+
maxzoom: 22,
|
|
25
|
+
rotation: 0,
|
|
26
|
+
},
|
|
27
|
+
dim: "2d",
|
|
28
|
+
theme: "bg-blue-chambray",
|
|
29
|
+
mapboxToken: mapboxToken,
|
|
30
|
+
basemaps: [
|
|
31
|
+
{
|
|
32
|
+
id: "OpenStreetMap",
|
|
33
|
+
name: "OpenStreetMap",
|
|
34
|
+
url: "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
35
|
+
maxZoom: 19,
|
|
36
|
+
attributions:
|
|
37
|
+
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
38
|
+
visible: true,
|
|
39
|
+
},
|
|
40
|
+
// {
|
|
41
|
+
// id: "MapBoxStreets",
|
|
42
|
+
// name: "MapBox Streets",
|
|
43
|
+
// url:
|
|
44
|
+
// "https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
45
|
+
// attributions:
|
|
46
|
+
// 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
47
|
+
// subdomains: "abcd",
|
|
48
|
+
// accessToken: mapboxToken,
|
|
49
|
+
// visible: false
|
|
50
|
+
// },
|
|
51
|
+
{
|
|
52
|
+
id: "MapBoxStreets",
|
|
53
|
+
name: "MapBox Streets",
|
|
54
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
55
|
+
attributions:
|
|
56
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
57
|
+
subdomains: "abcd",
|
|
58
|
+
accessToken: mapboxToken,
|
|
59
|
+
visible: false,
|
|
60
|
+
},
|
|
61
|
+
// {
|
|
62
|
+
// id: "MapBoxAerial",
|
|
63
|
+
// name: "MapBox Aerial",
|
|
64
|
+
// url:
|
|
65
|
+
// "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
66
|
+
// attributions:
|
|
67
|
+
// 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
68
|
+
// subdomains: "abcd",
|
|
69
|
+
// accessToken: mapboxToken,
|
|
70
|
+
// visible: false
|
|
71
|
+
// },
|
|
72
|
+
{
|
|
73
|
+
id: "MapBoxAerial",
|
|
74
|
+
name: "MapBox Aerial",
|
|
75
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
76
|
+
attributions:
|
|
77
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
78
|
+
subdomains: "abcd",
|
|
79
|
+
accessToken: mapboxToken,
|
|
80
|
+
visible: false,
|
|
81
|
+
},
|
|
82
|
+
// {
|
|
83
|
+
// id: "MapBoxOutdoor",
|
|
84
|
+
// name: "MapBox Outdoor",
|
|
85
|
+
// url:
|
|
86
|
+
// "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
87
|
+
// attributions:
|
|
88
|
+
// 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
89
|
+
// subdomains: "abcd",
|
|
90
|
+
// accessToken: mapboxToken,
|
|
91
|
+
// visible: false
|
|
92
|
+
// },
|
|
93
|
+
{
|
|
94
|
+
id: "MapBoxOutdoor",
|
|
95
|
+
name: "MapBox Outdoor",
|
|
96
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
97
|
+
attributions:
|
|
98
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
99
|
+
subdomains: "abcd",
|
|
100
|
+
accessToken: mapboxToken,
|
|
101
|
+
visible: false,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "Monochrome Light",
|
|
105
|
+
name: "Monochrome Light",
|
|
106
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
107
|
+
attributions:
|
|
108
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
109
|
+
subdomains: "abcd",
|
|
110
|
+
accessToken: mapboxToken,
|
|
111
|
+
visible: false,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "Monochrome Dark",
|
|
115
|
+
name: "Monochrome Dark",
|
|
116
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
117
|
+
attributions:
|
|
118
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
119
|
+
subdomains: "abcd",
|
|
120
|
+
accessToken: mapboxToken,
|
|
121
|
+
visible: false,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "Navigation Dark",
|
|
125
|
+
name: "Navigation Dark",
|
|
126
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
127
|
+
attributions:
|
|
128
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
129
|
+
subdomains: "abcd",
|
|
130
|
+
accessToken: mapboxToken,
|
|
131
|
+
visible: false,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "Navigation Light",
|
|
135
|
+
name: "Navigation Light",
|
|
136
|
+
url: "https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
|
|
137
|
+
attributions:
|
|
138
|
+
'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
|
139
|
+
subdomains: "abcd",
|
|
140
|
+
accessToken: mapboxToken,
|
|
141
|
+
visible: false,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "EsriWorldStreetMap",
|
|
145
|
+
name: "ESRI Streetmap",
|
|
146
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
|
|
147
|
+
attributions:
|
|
148
|
+
"Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
|
|
149
|
+
visible: false,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "EsriWorldImagery",
|
|
153
|
+
name: "ESRI World Imagery",
|
|
154
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
|
155
|
+
attributions:
|
|
156
|
+
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
157
|
+
visible: false,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "EsriUSATopoMaps",
|
|
161
|
+
name: "ESRI Topo Maps",
|
|
162
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",
|
|
163
|
+
attributions:
|
|
164
|
+
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
165
|
+
visible: false,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "EsriWorldShadedRelief",
|
|
169
|
+
name: "ESRI World Hillshade",
|
|
170
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",
|
|
171
|
+
attributions:
|
|
172
|
+
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
173
|
+
visible: false,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "EsriWorldOcean",
|
|
177
|
+
name: "ESRI World Ocean",
|
|
178
|
+
url: "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",
|
|
179
|
+
attributions:
|
|
180
|
+
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
181
|
+
visible: false,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "USGSImageryTopo",
|
|
185
|
+
name: "USGS Imagery/Topo",
|
|
186
|
+
url: "https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",
|
|
187
|
+
attributions:
|
|
188
|
+
"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
|
|
189
|
+
visible: false,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: "CartoDBDarkMatter",
|
|
193
|
+
name: "CartoDB Dark Matter",
|
|
194
|
+
url: "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
|
|
195
|
+
attributions:
|
|
196
|
+
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://cartodb.com/attributionss">CartoDB</a>',
|
|
197
|
+
subdomains: "abcd",
|
|
198
|
+
maxZoom: 19,
|
|
199
|
+
visible: false,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "CartoDBPositron",
|
|
203
|
+
name: "CartoDB Positron",
|
|
204
|
+
url: "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
|
|
205
|
+
attributions:
|
|
206
|
+
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://cartodb.com/attributionss">CartoDB</a>',
|
|
207
|
+
subdomains: "abcd",
|
|
208
|
+
maxZoom: 19,
|
|
209
|
+
visible: false,
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
datasetsDontUse: [
|
|
213
|
+
{
|
|
214
|
+
id: null,
|
|
215
|
+
parentId: null,
|
|
216
|
+
layerOrder: 1,
|
|
217
|
+
mapId: 646,
|
|
218
|
+
mapUuid: null,
|
|
219
|
+
teamId: null,
|
|
220
|
+
datasetId: null,
|
|
221
|
+
teamDatasetId: null,
|
|
222
|
+
serviceType: "EsriFeatureService",
|
|
223
|
+
tiled: 0,
|
|
224
|
+
displayName: "Foundational Project Area",
|
|
225
|
+
description: "",
|
|
226
|
+
url: "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",
|
|
227
|
+
grids: null,
|
|
228
|
+
layerList: "1",
|
|
229
|
+
attribution: null,
|
|
230
|
+
geometryType: "POINT",
|
|
231
|
+
minzoom: 1,
|
|
232
|
+
maxzoom: 22,
|
|
233
|
+
abstract: null,
|
|
234
|
+
purpose: null,
|
|
235
|
+
status: null,
|
|
236
|
+
keywords: null,
|
|
237
|
+
localTable: null,
|
|
238
|
+
metadataUrl: null,
|
|
239
|
+
minX: -177.47,
|
|
240
|
+
maxX: -64.71000000000001,
|
|
241
|
+
minY: 13.43,
|
|
242
|
+
maxY: 72.55,
|
|
243
|
+
opacity: 1,
|
|
244
|
+
useMapfile: 1,
|
|
245
|
+
queryTemplate: "",
|
|
246
|
+
hoverTemplate: "",
|
|
247
|
+
queryable: 1,
|
|
248
|
+
visible: 0,
|
|
249
|
+
collapsed: 1,
|
|
250
|
+
idCol: "objectid",
|
|
251
|
+
shapeCol: "SHAPE",
|
|
252
|
+
allowEdit: 0,
|
|
253
|
+
allowExport: 1,
|
|
254
|
+
createdBy: "1380992694",
|
|
255
|
+
createDate: "2017-12-12T13:15:12.000Z",
|
|
256
|
+
cacheTiles: 0,
|
|
257
|
+
labelDefault: 0,
|
|
258
|
+
labelEnabled: 0,
|
|
259
|
+
deep: 2,
|
|
260
|
+
path: "depricated",
|
|
261
|
+
styleFn: `(
|
|
262
|
+
function(f){
|
|
263
|
+
const div = f.get('DIV_SYM');
|
|
264
|
+
const colors = {
|
|
265
|
+
'MVD':'#949CA3',
|
|
266
|
+
'NAD':'#334762',
|
|
267
|
+
'NWD':'#B39A67',
|
|
268
|
+
'POD':'#D8AE46',
|
|
269
|
+
'SAD':'#B24C2E',
|
|
270
|
+
'SPD':'#B15142',
|
|
271
|
+
'SWD':'#BB742B',
|
|
272
|
+
'LRD':'#257F6A'
|
|
273
|
+
}
|
|
274
|
+
const style = new window.olStyle.Style({
|
|
275
|
+
fill: new window.olStyle.Fill({
|
|
276
|
+
color: colors[div]
|
|
277
|
+
}),
|
|
278
|
+
stroke: new window.olStyle.Stroke({
|
|
279
|
+
color: '#362A2C',
|
|
280
|
+
width: 0.4
|
|
281
|
+
})
|
|
282
|
+
})
|
|
283
|
+
return style;
|
|
284
|
+
}
|
|
285
|
+
)`,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
id: null,
|
|
289
|
+
parentId: null,
|
|
290
|
+
layerOrder: 1,
|
|
291
|
+
mapId: 646,
|
|
292
|
+
mapUuid: null,
|
|
293
|
+
teamId: null,
|
|
294
|
+
datasetId: null,
|
|
295
|
+
teamDatasetId: null,
|
|
296
|
+
serviceType: "EsriFeatureService",
|
|
297
|
+
tiled: 0,
|
|
298
|
+
displayName: "Divisions",
|
|
299
|
+
description: "",
|
|
300
|
+
url: "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",
|
|
301
|
+
grids: null,
|
|
302
|
+
layerList: "0",
|
|
303
|
+
attribution: null,
|
|
304
|
+
geometryType: "POINT",
|
|
305
|
+
minzoom: 1,
|
|
306
|
+
maxzoom: 22,
|
|
307
|
+
abstract: null,
|
|
308
|
+
purpose: null,
|
|
309
|
+
status: null,
|
|
310
|
+
keywords: null,
|
|
311
|
+
localTable: null,
|
|
312
|
+
metadataUrl: null,
|
|
313
|
+
minX: -177.47,
|
|
314
|
+
maxX: -64.71000000000001,
|
|
315
|
+
minY: 13.43,
|
|
316
|
+
maxY: 72.55,
|
|
317
|
+
opacity: 1,
|
|
318
|
+
useMapfile: 1,
|
|
319
|
+
queryTemplate: "",
|
|
320
|
+
hoverTemplate: "",
|
|
321
|
+
queryable: 1,
|
|
322
|
+
visible: 0,
|
|
323
|
+
collapsed: 1,
|
|
324
|
+
idCol: "objectid",
|
|
325
|
+
shapeCol: "SHAPE",
|
|
326
|
+
allowEdit: 0,
|
|
327
|
+
allowExport: 1,
|
|
328
|
+
createdBy: "1380992694",
|
|
329
|
+
createDate: "2017-12-12T13:15:12.000Z",
|
|
330
|
+
cacheTiles: 0,
|
|
331
|
+
labelDefault: 0,
|
|
332
|
+
labelEnabled: 0,
|
|
333
|
+
deep: 2,
|
|
334
|
+
path: "depricated",
|
|
335
|
+
styleFn: `(
|
|
336
|
+
function(f){
|
|
337
|
+
const div = f.get('DIV_SYM');
|
|
338
|
+
const colors = {
|
|
339
|
+
'MVD':'#949CA3',
|
|
340
|
+
'NAD':'#334762',
|
|
341
|
+
'NWD':'#B39A67',
|
|
342
|
+
'POD':'#D8AE46',
|
|
343
|
+
'SAD':'#B24C2E',
|
|
344
|
+
'SPD':'#B15142',
|
|
345
|
+
'SWD':'#BB742B',
|
|
346
|
+
'LRD':'#257F6A'
|
|
347
|
+
}
|
|
348
|
+
const style = new window.olStyle.Style({
|
|
349
|
+
fill: new window.olStyle.Fill({
|
|
350
|
+
color: colors[div]
|
|
351
|
+
}),
|
|
352
|
+
stroke: new window.olStyle.Stroke({
|
|
353
|
+
color: '#362A2C',
|
|
354
|
+
width: 0.4
|
|
355
|
+
})
|
|
356
|
+
})
|
|
357
|
+
return style;
|
|
358
|
+
}
|
|
359
|
+
)`,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
id: null,
|
|
363
|
+
parentId: null,
|
|
364
|
+
layerOrder: 1,
|
|
365
|
+
mapId: 646,
|
|
366
|
+
mapUuid: null,
|
|
367
|
+
teamId: null,
|
|
368
|
+
datasetId: null,
|
|
369
|
+
teamDatasetId: null,
|
|
370
|
+
serviceType: "RemoteVector",
|
|
371
|
+
tiled: 0,
|
|
372
|
+
displayName: "Dam Status",
|
|
373
|
+
description: "",
|
|
374
|
+
url: "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",
|
|
375
|
+
grids: null,
|
|
376
|
+
layerList: "ahpsfcst_minor",
|
|
377
|
+
attribution: null,
|
|
378
|
+
geometryType: "POINT",
|
|
379
|
+
minzoom: 1,
|
|
380
|
+
maxzoom: 22,
|
|
381
|
+
abstract: null,
|
|
382
|
+
purpose: null,
|
|
383
|
+
status: null,
|
|
384
|
+
keywords: null,
|
|
385
|
+
localTable: null,
|
|
386
|
+
metadataUrl: null,
|
|
387
|
+
minX: -177.47,
|
|
388
|
+
maxX: -64.71000000000001,
|
|
389
|
+
minY: 13.43,
|
|
390
|
+
maxY: 72.55,
|
|
391
|
+
opacity: 1,
|
|
392
|
+
useMapfile: 1,
|
|
393
|
+
queryTemplate: "",
|
|
394
|
+
hoverTemplate: "",
|
|
395
|
+
queryable: 1,
|
|
396
|
+
visible: 0,
|
|
397
|
+
collapsed: 1,
|
|
398
|
+
idCol: "objectid",
|
|
399
|
+
shapeCol: "SHAPE",
|
|
400
|
+
allowEdit: 0,
|
|
401
|
+
allowExport: 1,
|
|
402
|
+
createdBy: "1380992694",
|
|
403
|
+
createDate: "2017-12-12T13:15:12.000Z",
|
|
404
|
+
cacheTiles: 0,
|
|
405
|
+
labelDefault: 0,
|
|
406
|
+
labelEnabled: 0,
|
|
407
|
+
deep: 2,
|
|
408
|
+
path: "depricated",
|
|
409
|
+
styleFn: `(
|
|
410
|
+
function(f){
|
|
411
|
+
const b = f.get('briefit');
|
|
412
|
+
const t = f.get('systemname');
|
|
413
|
+
const h = b === 'Y';
|
|
414
|
+
const labelStyle = new window.olStyle.Style({
|
|
415
|
+
text: new window.olStyle.Text({
|
|
416
|
+
text: h ? t : null,
|
|
417
|
+
font: 'bold 16px sans-serif',
|
|
418
|
+
textAlign:'left',
|
|
419
|
+
offsetX:3,
|
|
420
|
+
offsetY:-3,
|
|
421
|
+
textAlign: 'left',
|
|
422
|
+
textBaseline: 'bottom',
|
|
423
|
+
overflow: true,
|
|
424
|
+
stroke: new window.olStyle.Stroke({
|
|
425
|
+
color:'#ABB1A5',
|
|
426
|
+
width: 2
|
|
427
|
+
}),
|
|
428
|
+
fill: new window.olStyle.Fill({
|
|
429
|
+
color: '#0E0D1E'
|
|
430
|
+
})
|
|
431
|
+
})
|
|
432
|
+
})
|
|
433
|
+
const pointStyle = new window.olStyle.Style({
|
|
434
|
+
allowOverlap: true,
|
|
435
|
+
image: new window.olStyle.Circle({
|
|
436
|
+
radius: h ? 9 : 6,
|
|
437
|
+
stroke: new window.olStyle.Stroke({
|
|
438
|
+
color: '#ABB1A5',
|
|
439
|
+
width: 2
|
|
440
|
+
}),
|
|
441
|
+
fill: new window.olStyle.Fill({
|
|
442
|
+
color: h ? '#773621' : '#C14F11'
|
|
443
|
+
})
|
|
444
|
+
})
|
|
445
|
+
});
|
|
446
|
+
return [pointStyle, labelStyle];
|
|
447
|
+
}
|
|
448
|
+
)`,
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
id: null,
|
|
452
|
+
parentId: null,
|
|
453
|
+
layerOrder: 1,
|
|
454
|
+
mapId: 646,
|
|
455
|
+
mapUuid: null,
|
|
456
|
+
teamId: null,
|
|
457
|
+
datasetId: null,
|
|
458
|
+
teamDatasetId: null,
|
|
459
|
+
serviceType: "RemoteVector",
|
|
460
|
+
tiled: 0,
|
|
461
|
+
displayName: "Levee Data",
|
|
462
|
+
description: "Real time forecast values from NOAA. Updated hourly",
|
|
463
|
+
url: "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",
|
|
464
|
+
grids: null,
|
|
465
|
+
layerList: "ahpsfcst_minor",
|
|
466
|
+
attribution: null,
|
|
467
|
+
geometryType: "POINT",
|
|
468
|
+
minzoom: 1,
|
|
469
|
+
maxzoom: 22,
|
|
470
|
+
abstract: null,
|
|
471
|
+
purpose: null,
|
|
472
|
+
status: null,
|
|
473
|
+
keywords: null,
|
|
474
|
+
localTable: null,
|
|
475
|
+
metadataUrl: null,
|
|
476
|
+
minX: -177.47,
|
|
477
|
+
maxX: -64.71000000000001,
|
|
478
|
+
minY: 13.43,
|
|
479
|
+
maxY: 72.55,
|
|
480
|
+
opacity: 1,
|
|
481
|
+
useMapfile: 1,
|
|
482
|
+
queryTemplate: "",
|
|
483
|
+
hoverTemplate: "",
|
|
484
|
+
queryable: 1,
|
|
485
|
+
visible: 0,
|
|
486
|
+
collapsed: 1,
|
|
487
|
+
idCol: "objectid",
|
|
488
|
+
shapeCol: "SHAPE",
|
|
489
|
+
allowEdit: 0,
|
|
490
|
+
allowExport: 1,
|
|
491
|
+
createdBy: "1380992694",
|
|
492
|
+
createDate: "2017-12-12T13:15:12.000Z",
|
|
493
|
+
cacheTiles: 0,
|
|
494
|
+
labelDefault: 0,
|
|
495
|
+
labelEnabled: 0,
|
|
496
|
+
deep: 2,
|
|
497
|
+
path: "depricated",
|
|
498
|
+
styleFn: `(
|
|
499
|
+
function(f){
|
|
500
|
+
const b = f.get('briefit');
|
|
501
|
+
const t = f.get('systemname');
|
|
502
|
+
const h = b === 'Y';
|
|
503
|
+
const labelStyle = new window.olStyle.Style({
|
|
504
|
+
text: new window.olStyle.Text({
|
|
505
|
+
text: h ? t : null,
|
|
506
|
+
font: 'bold 16px sans-serif',
|
|
507
|
+
textAlign:'left',
|
|
508
|
+
offsetX:3,
|
|
509
|
+
offsetY:-3,
|
|
510
|
+
textAlign: 'left',
|
|
511
|
+
textBaseline: 'bottom',
|
|
512
|
+
overflow: true,
|
|
513
|
+
stroke: new window.olStyle.Stroke({
|
|
514
|
+
color:'#DAD9C4',
|
|
515
|
+
width: 2
|
|
516
|
+
}),
|
|
517
|
+
fill: new window.olStyle.Fill({
|
|
518
|
+
color: '#33302A'
|
|
519
|
+
})
|
|
520
|
+
})
|
|
521
|
+
})
|
|
522
|
+
const pointStyle = new window.olStyle.Style({
|
|
523
|
+
allowOverlap: true,
|
|
524
|
+
image: new window.olStyle.Circle({
|
|
525
|
+
radius: h ? 9 : 6,
|
|
526
|
+
stroke: new window.olStyle.Stroke({
|
|
527
|
+
color: '#DAD9C4',
|
|
528
|
+
width: 2
|
|
529
|
+
}),
|
|
530
|
+
fill: new window.olStyle.Fill({
|
|
531
|
+
color: h ? '#B85B2B' : '#DEA500'
|
|
532
|
+
})
|
|
533
|
+
})
|
|
534
|
+
});
|
|
535
|
+
return [pointStyle, labelStyle];
|
|
536
|
+
}
|
|
537
|
+
)`,
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
id: 13597,
|
|
541
|
+
parentId: null,
|
|
542
|
+
layerOrder: 2,
|
|
543
|
+
mapId: 646,
|
|
544
|
+
mapUuid: null,
|
|
545
|
+
teamId: 39,
|
|
546
|
+
datasetId: 716,
|
|
547
|
+
teamDatasetId: 713,
|
|
548
|
+
serviceType: "XYZ",
|
|
549
|
+
tiled: 1,
|
|
550
|
+
displayName: "Minor Flooding",
|
|
551
|
+
description: "Real time forecast values from NOAA. Updated hourly",
|
|
552
|
+
url: "https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",
|
|
553
|
+
grids: null,
|
|
554
|
+
layerList: "ahpsfcst_minor",
|
|
555
|
+
attribution: null,
|
|
556
|
+
geometryType: "POINT",
|
|
557
|
+
minzoom: 1,
|
|
558
|
+
maxzoom: 22,
|
|
559
|
+
abstract: null,
|
|
560
|
+
purpose: null,
|
|
561
|
+
status: null,
|
|
562
|
+
keywords: null,
|
|
563
|
+
localTable: "NOAA.NATIONAL_FCST_VW_MIN",
|
|
564
|
+
metadataUrl: null,
|
|
565
|
+
minX: -177.47,
|
|
566
|
+
maxX: -64.71000000000001,
|
|
567
|
+
minY: 13.43,
|
|
568
|
+
maxY: 72.55,
|
|
569
|
+
opacity: 1,
|
|
570
|
+
useMapfile: 1,
|
|
571
|
+
queryTemplate:
|
|
572
|
+
'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
|
|
573
|
+
hoverTemplate:
|
|
574
|
+
'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
|
|
575
|
+
queryable: 1,
|
|
576
|
+
visible: 0,
|
|
577
|
+
collapsed: 1,
|
|
578
|
+
idCol: "objectid",
|
|
579
|
+
shapeCol: "SHAPE",
|
|
580
|
+
allowEdit: 0,
|
|
581
|
+
allowExport: 1,
|
|
582
|
+
createdBy: "1380992694",
|
|
583
|
+
createDate: "2017-12-12T13:15:12.000Z",
|
|
584
|
+
cacheTiles: 0,
|
|
585
|
+
labelDefault: 0,
|
|
586
|
+
labelEnabled: 0,
|
|
587
|
+
deep: 2,
|
|
588
|
+
path: "depricated",
|
|
589
|
+
},
|
|
590
|
+
],
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
export default config;
|
|
@@ -0,0 +1,34 @@
|
|
|
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);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BasicToolbarMenuItem } from "../../application-controls";
|
|
3
|
+
import { connect } from "../../utils/redux-bundler-react";
|
|
4
|
+
|
|
5
|
+
class AddGeoJsonButton extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.handleClick = this.handleClick.bind(this);
|
|
9
|
+
this.handleFile = this.handleFile.bind(this);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
handleClick(e) {
|
|
13
|
+
this.geojsonInput.click();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
handleFile(e) {
|
|
17
|
+
const { doAddDataFile } = this.props;
|
|
18
|
+
const file = this.geojsonInput.files[0];
|
|
19
|
+
doAddDataFile(file);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
render() {
|
|
23
|
+
return (
|
|
24
|
+
<BasicToolbarMenuItem
|
|
25
|
+
active={false}
|
|
26
|
+
iconClass="ms ms-geojson icon-inline"
|
|
27
|
+
title="Add Local GeoJSON File"
|
|
28
|
+
text="Add Local GeoJSON File"
|
|
29
|
+
onClick={this.handleClick}
|
|
30
|
+
passProps={{}}
|
|
31
|
+
disableSubmenu={true}
|
|
32
|
+
>
|
|
33
|
+
<input
|
|
34
|
+
onChange={this.handleFile}
|
|
35
|
+
accept=".geojson,.json"
|
|
36
|
+
className="hidden"
|
|
37
|
+
type="file"
|
|
38
|
+
ref={(el) => {
|
|
39
|
+
this.geojsonInput = el;
|
|
40
|
+
}}
|
|
41
|
+
/>
|
|
42
|
+
</BasicToolbarMenuItem>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default connect("doAddDataFile", AddGeoJsonButton);
|