@corpsmap/corpsmap 4.0.35 → 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 -41517
- package/lib/prod.js +0 -41483
- package/rollup.config.js +0 -30
- 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/bundles/map-view-bundle.js +0 -34
- 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 -38
- package/src/components/MeasureTool/index.js +0 -125
- package/src/components/MeasureTool/measure-utils.js +0 -57
- package/src/components/Zoom/index.js +0 -28
- package/src/components/index.js +0 -3
- package/src/index.js +0 -11
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
export default {
|
|
3
|
+
name: 'config',
|
|
4
|
+
getReducer(){
|
|
5
|
+
const initialData = {
|
|
6
|
+
default:{}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return (state = initialData, { type, payload }) => {
|
|
10
|
+
return state;
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
selectDefaultConfig: (state) => {
|
|
15
|
+
return state.config.default;
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
selectBasemapList: (state) => {
|
|
19
|
+
return state.config.default.basemaps.map((b) => {
|
|
20
|
+
if(b.url.indexOf('{accessToken}') !== -1) b.url = b.url.replace(/{accessToken}/ig, b.accessToken || '');
|
|
21
|
+
if(b.url.indexOf('{s}') !== -1) b.url = b.url.replace(/{s}/ig, b.accessToken || '{a-c}');
|
|
22
|
+
return b;
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
selectDefaultLayers: (state) => {
|
|
27
|
+
return state.config.default.datasets;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
// import v4 from 'uuid/v4';
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "ui",
|
|
6
|
+
|
|
7
|
+
getReducer: () => {
|
|
8
|
+
const initialData = {
|
|
9
|
+
northConfig: {
|
|
10
|
+
height: window.innerHeight,
|
|
11
|
+
},
|
|
12
|
+
southConfig: {
|
|
13
|
+
height: 0,
|
|
14
|
+
children: [],
|
|
15
|
+
},
|
|
16
|
+
primaryPanelConfig: {
|
|
17
|
+
openedBy: null,
|
|
18
|
+
width: 420,
|
|
19
|
+
children: [],
|
|
20
|
+
options: null,
|
|
21
|
+
},
|
|
22
|
+
secondaryPanelConfig: {
|
|
23
|
+
open: false,
|
|
24
|
+
width: 300,
|
|
25
|
+
children: [],
|
|
26
|
+
options: null,
|
|
27
|
+
},
|
|
28
|
+
modalConfig: {
|
|
29
|
+
children: [],
|
|
30
|
+
options: null,
|
|
31
|
+
openedBy: null,
|
|
32
|
+
},
|
|
33
|
+
basicToolbarConfig: {
|
|
34
|
+
activeTool: null,
|
|
35
|
+
},
|
|
36
|
+
theme: "bg-blue-chambray",
|
|
37
|
+
shouldUpdateWindowSize: false,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return (state = initialData, { type, payload }) => {
|
|
41
|
+
if (type === "WINDOW_RESIZE") {
|
|
42
|
+
return Object.assign({}, state, {
|
|
43
|
+
shouldUpdateWindowSize: true,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (type.indexOf("UI_UPDATE_WINDOW_SIZE_") !== -1) {
|
|
48
|
+
return Object.assign({}, state, payload);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (type === "UI_RESIZED_NORTH_SOUTH") {
|
|
52
|
+
const northConfig = {
|
|
53
|
+
height: payload.hNorth,
|
|
54
|
+
};
|
|
55
|
+
const southConfig = {
|
|
56
|
+
height: payload.hSouth,
|
|
57
|
+
children: state.southConfig.children,
|
|
58
|
+
options: state.southConfig.options,
|
|
59
|
+
};
|
|
60
|
+
return Object.assign({}, state, {
|
|
61
|
+
northConfig: northConfig,
|
|
62
|
+
southConfig: southConfig,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (type === "UI_OPENED_SOUTH_PANEL") {
|
|
67
|
+
const northConfig = {
|
|
68
|
+
height: window.innerHeight / 2,
|
|
69
|
+
};
|
|
70
|
+
const southConfig = {
|
|
71
|
+
height: window.innerHeight / 2,
|
|
72
|
+
children: payload.children,
|
|
73
|
+
};
|
|
74
|
+
return Object.assign({}, state, {
|
|
75
|
+
northConfig: northConfig,
|
|
76
|
+
southConfig: southConfig,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (type === "UI_CLOSED_SOUTH_PANEL") {
|
|
81
|
+
const northConfig = {
|
|
82
|
+
height: window.innerHeight,
|
|
83
|
+
};
|
|
84
|
+
const southConfig = {
|
|
85
|
+
height: 0,
|
|
86
|
+
children: [],
|
|
87
|
+
};
|
|
88
|
+
return Object.assign({}, state, {
|
|
89
|
+
northConfig: northConfig,
|
|
90
|
+
southConfig: southConfig,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (type === "UI_CLOSED_SOUTH_TAB") {
|
|
95
|
+
const southConfig = {
|
|
96
|
+
children: payload.children,
|
|
97
|
+
};
|
|
98
|
+
return Object.assign({}, state, {
|
|
99
|
+
southConfig: southConfig,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (type === "UI_OPENED_MODAL_WINDOW") {
|
|
104
|
+
const modalConfig = {
|
|
105
|
+
children: payload.children,
|
|
106
|
+
options: payload.options,
|
|
107
|
+
openedBy: payload.openedBy,
|
|
108
|
+
};
|
|
109
|
+
return Object.assign({}, state, {
|
|
110
|
+
modalConfig: modalConfig,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (type === "UI_CLOSED_MODAL_WINDOW") {
|
|
115
|
+
const modalConfig = {
|
|
116
|
+
children: [],
|
|
117
|
+
options: null,
|
|
118
|
+
openedBy: null,
|
|
119
|
+
};
|
|
120
|
+
return Object.assign({}, state, {
|
|
121
|
+
modalConfig: modalConfig,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (type === "UI_OPENED_PRIMARY_PANEL") {
|
|
126
|
+
const primaryPanelConfig = {
|
|
127
|
+
openedBy: payload.openedBy,
|
|
128
|
+
width: state.primaryPanelConfig.width,
|
|
129
|
+
children: payload.children,
|
|
130
|
+
options: payload.options,
|
|
131
|
+
};
|
|
132
|
+
return Object.assign({}, state, {
|
|
133
|
+
primaryPanelConfig: primaryPanelConfig,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (type === "UI_CLOSED_PRIMARY_PANEL") {
|
|
138
|
+
const primaryPanelConfig = {
|
|
139
|
+
openedBy: null,
|
|
140
|
+
width: state.primaryPanelConfig.width,
|
|
141
|
+
left: state.primaryPanelConfig.left,
|
|
142
|
+
children: [],
|
|
143
|
+
options: null,
|
|
144
|
+
};
|
|
145
|
+
return Object.assign({}, state, {
|
|
146
|
+
primaryPanelConfig: primaryPanelConfig,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (type === "UI_RESIZED_PRIMARY_PANEL") {
|
|
151
|
+
const primaryPanelConfig = {
|
|
152
|
+
open: state.primaryPanelConfig.open,
|
|
153
|
+
width: payload.width,
|
|
154
|
+
left: state.primaryPanelConfig.left,
|
|
155
|
+
children: state.primaryPanelConfig.children,
|
|
156
|
+
options: state.primaryPanelConfig.options,
|
|
157
|
+
openedBy: state.primaryPanelConfig.openedBy,
|
|
158
|
+
};
|
|
159
|
+
const secondaryPanelConfig = {
|
|
160
|
+
open: state.secondaryPanelConfig.open,
|
|
161
|
+
width: state.secondaryPanelConfig.width,
|
|
162
|
+
left: payload.width,
|
|
163
|
+
children: state.secondaryPanelConfig.children,
|
|
164
|
+
options: state.secondaryPanelConfig.options,
|
|
165
|
+
openedBy: state.secondaryPanelConfig.openedBy,
|
|
166
|
+
};
|
|
167
|
+
return Object.assign({}, state, {
|
|
168
|
+
primaryPanelConfig: primaryPanelConfig,
|
|
169
|
+
secondaryPanelConfig: secondaryPanelConfig,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (type === "UI_ACTIVATE_BASIC_TOOL") {
|
|
174
|
+
const basicToolbarConfig = {
|
|
175
|
+
activeTool: payload,
|
|
176
|
+
};
|
|
177
|
+
return Object.assign({}, state, {
|
|
178
|
+
basicToolbarConfig: basicToolbarConfig,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (type === "UI_DEACTIVATE_BASIC_TOOL") {
|
|
183
|
+
const basicToolbarConfig = {
|
|
184
|
+
activeTool: null,
|
|
185
|
+
};
|
|
186
|
+
return Object.assign({}, state, {
|
|
187
|
+
basicToolbarConfig: basicToolbarConfig,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (type === "UI_THEME_CHANGED") {
|
|
192
|
+
return Object.assign({}, state, {
|
|
193
|
+
theme: payload,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return state;
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
// ACTION CREATORS
|
|
202
|
+
doUiUpdateWindowSize:
|
|
203
|
+
() =>
|
|
204
|
+
({ dispatch, store }) => {
|
|
205
|
+
dispatch({
|
|
206
|
+
type: "UI_UPDATE_WINDOW_SIZE_START",
|
|
207
|
+
payload: { shouldUpdateWindowSize: false },
|
|
208
|
+
});
|
|
209
|
+
const h = store.selectViewportHeight();
|
|
210
|
+
const northConfig = store.selectNorthConfig();
|
|
211
|
+
const southConfig = store.selectSouthConfig();
|
|
212
|
+
const northPortion =
|
|
213
|
+
northConfig.height / (northConfig.height + southConfig.height);
|
|
214
|
+
const southPortion =
|
|
215
|
+
southConfig.height / (northConfig.height + southConfig.height);
|
|
216
|
+
const newPayload = {
|
|
217
|
+
northConfig: Object.assign({}, northConfig, {
|
|
218
|
+
height: h * northPortion,
|
|
219
|
+
}),
|
|
220
|
+
southConfig: Object.assign({}, southConfig, {
|
|
221
|
+
height: h * southPortion,
|
|
222
|
+
}),
|
|
223
|
+
};
|
|
224
|
+
dispatch({ type: "UI_UPDATE_WINDOW_SIZE_COMPLETE", payload: newPayload });
|
|
225
|
+
store.doMapUpdateSize();
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
doMapUpdateSize:
|
|
229
|
+
() =>
|
|
230
|
+
({ dispatch, store }) => {
|
|
231
|
+
const map = store.selectMap();
|
|
232
|
+
window.setTimeout(() => {
|
|
233
|
+
map.updateSize();
|
|
234
|
+
}, 100);
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
doSouthRegionOpen:
|
|
238
|
+
({ component, options, openedBy, displayName }) =>
|
|
239
|
+
({ dispatch, store }) => {
|
|
240
|
+
const existingChildren = store.selectSouthRegionChildren();
|
|
241
|
+
const uid = uuidv4();
|
|
242
|
+
dispatch({
|
|
243
|
+
type: "UI_OPENED_SOUTH_PANEL",
|
|
244
|
+
payload: {
|
|
245
|
+
children: existingChildren.concat([
|
|
246
|
+
{ component, options, openedBy, displayName, uid },
|
|
247
|
+
]),
|
|
248
|
+
},
|
|
249
|
+
});
|
|
250
|
+
store.doMapUpdateSize();
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
doCloseSouthTab:
|
|
254
|
+
(child) =>
|
|
255
|
+
({ dispatch, store }) => {
|
|
256
|
+
const children = store.selectSouthRegionChildren().slice();
|
|
257
|
+
const idx = children.indexOf(child);
|
|
258
|
+
children.splice(idx, 1);
|
|
259
|
+
dispatch({
|
|
260
|
+
type: "UI_CLOSED_SOUTH_TAB",
|
|
261
|
+
payload: { children: children },
|
|
262
|
+
});
|
|
263
|
+
if (children.length === 0) return store.doCloseSouthRegion();
|
|
264
|
+
},
|
|
265
|
+
|
|
266
|
+
doCloseSouthRegion:
|
|
267
|
+
() =>
|
|
268
|
+
({ dispatch, store }) => {
|
|
269
|
+
dispatch({ type: "UI_CLOSED_SOUTH_PANEL" });
|
|
270
|
+
store.doMapUpdateSize();
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
doModalOpen:
|
|
274
|
+
({ children, options, openedBy }) =>
|
|
275
|
+
({ dispatch }) => {
|
|
276
|
+
dispatch({
|
|
277
|
+
type: "UI_OPENED_MODAL_WINDOW",
|
|
278
|
+
payload: { children, options, openedBy },
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
doModalClose:
|
|
283
|
+
() =>
|
|
284
|
+
({ dispatch }) => {
|
|
285
|
+
dispatch({ type: "UI_CLOSED_MODAL_WINDOW" });
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
doPrimaryPanelOpen:
|
|
289
|
+
({ children, options, openedBy }) =>
|
|
290
|
+
({ dispatch }) => {
|
|
291
|
+
dispatch({
|
|
292
|
+
type: "UI_OPENED_PRIMARY_PANEL",
|
|
293
|
+
payload: { children, options, openedBy },
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
doPrimaryPanelClose:
|
|
298
|
+
() =>
|
|
299
|
+
({ dispatch }) => {
|
|
300
|
+
dispatch({ type: "UI_CLOSED_PRIMARY_PANEL" });
|
|
301
|
+
},
|
|
302
|
+
|
|
303
|
+
doOpenSecondaryPanel:
|
|
304
|
+
({ children, options, openedBy }) =>
|
|
305
|
+
({ dispatch }) => {
|
|
306
|
+
dispatch({
|
|
307
|
+
type: "UI_OPENED_SECONDARY_PANEL",
|
|
308
|
+
payload: { children, options, openedBy },
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
|
|
312
|
+
doCloseSecondaryPanel:
|
|
313
|
+
() =>
|
|
314
|
+
({ dispatch }) => {
|
|
315
|
+
dispatch({ type: "UI_CLOSED_SECONDARY_PANEL" });
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
doSetTheme:
|
|
319
|
+
(newTheme) =>
|
|
320
|
+
({ dispatch }) => {
|
|
321
|
+
dispatch({ type: "UI_THEME_CHANGED", payload: newTheme });
|
|
322
|
+
},
|
|
323
|
+
|
|
324
|
+
doResizeSouthRegion:
|
|
325
|
+
({ hNorth, hSouth }) =>
|
|
326
|
+
({ dispatch, store }) => {
|
|
327
|
+
dispatch({ type: "UI_RESIZED_NORTH_SOUTH", payload: { hNorth, hSouth } });
|
|
328
|
+
store.doMapUpdateSize();
|
|
329
|
+
},
|
|
330
|
+
|
|
331
|
+
doPrimaryPanelResize:
|
|
332
|
+
({ width }) =>
|
|
333
|
+
({ dispatch }) => {
|
|
334
|
+
dispatch({ type: "UI_RESIZED_PRIMARY_PANEL", payload: { width } });
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
doBasicToolbarActivate:
|
|
338
|
+
({ activeTool }) =>
|
|
339
|
+
({ dispatch }) => {
|
|
340
|
+
dispatch({ type: "UI_ACTIVATE_BASIC_TOOL", payload: activeTool });
|
|
341
|
+
},
|
|
342
|
+
|
|
343
|
+
doBasicToolbarDeactivate:
|
|
344
|
+
() =>
|
|
345
|
+
({ dispatch }) => {
|
|
346
|
+
dispatch({ type: "UI_DEACTIVATE_BASIC_TOOL" });
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
// SELECTORS
|
|
350
|
+
selectNorthConfig: (state) => {
|
|
351
|
+
return state.ui.northConfig;
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
selectSouthConfig: (state) => {
|
|
355
|
+
return state.ui.southConfig;
|
|
356
|
+
},
|
|
357
|
+
|
|
358
|
+
selectNorthHeight: (state) => {
|
|
359
|
+
return state.ui.northConfig.height;
|
|
360
|
+
},
|
|
361
|
+
|
|
362
|
+
selectSouthHeight: (state) => {
|
|
363
|
+
return state.ui.southConfig.height;
|
|
364
|
+
},
|
|
365
|
+
|
|
366
|
+
selectSouthRegionChildren: (state) => {
|
|
367
|
+
return state.ui.southConfig.children;
|
|
368
|
+
},
|
|
369
|
+
|
|
370
|
+
selectModalChildren: (state) => {
|
|
371
|
+
return state.ui.modalConfig.children;
|
|
372
|
+
},
|
|
373
|
+
|
|
374
|
+
selectModalOptions: (state) => {
|
|
375
|
+
return state.ui.modalConfig.options;
|
|
376
|
+
},
|
|
377
|
+
|
|
378
|
+
selectPrimaryPanelOpenedBy: (state) => {
|
|
379
|
+
return state.ui.primaryPanelConfig.openedBy;
|
|
380
|
+
},
|
|
381
|
+
|
|
382
|
+
selectPrimaryPanelChildren: (state) => {
|
|
383
|
+
return state.ui.primaryPanelConfig.children;
|
|
384
|
+
},
|
|
385
|
+
|
|
386
|
+
selectPrimaryPanelOptions: (state) => {
|
|
387
|
+
return state.ui.primaryPanelConfig.options;
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
selectPrimaryPanelWidth: (state) => {
|
|
391
|
+
return state.ui.primaryPanelConfig.width;
|
|
392
|
+
},
|
|
393
|
+
|
|
394
|
+
selectBasicToolbarActiveTool: (state) => {
|
|
395
|
+
return state.ui.basicToolbarConfig.activeTool;
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
selectTheme: (state) => {
|
|
399
|
+
return state.ui.theme;
|
|
400
|
+
},
|
|
401
|
+
|
|
402
|
+
reactShouldUpdateWindowSize: (state) => {
|
|
403
|
+
if (state.ui.shouldUpdateWindowSize)
|
|
404
|
+
return { actionCreator: "doUiUpdateWindowSize" };
|
|
405
|
+
},
|
|
406
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
+
import PluginRegion from "../utils/plugin-region";
|
|
4
|
+
|
|
5
|
+
class BasicToolbar extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
const { theme, componentsBasicToolbar } = this.props;
|
|
8
|
+
return (
|
|
9
|
+
<div className={"toolbar toolbar-top-left " + theme} style={{ left: 49 }}>
|
|
10
|
+
<PluginRegion
|
|
11
|
+
className="toolbar-horizontal"
|
|
12
|
+
components={componentsBasicToolbar}
|
|
13
|
+
styleOverride={{}}
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default connect(
|
|
21
|
+
"selectTheme",
|
|
22
|
+
"selectComponentsBasicToolbar",
|
|
23
|
+
BasicToolbar
|
|
24
|
+
);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
+
import NorthRegion from "./north-region";
|
|
4
|
+
import SouthRegion from "./south-region";
|
|
5
|
+
import ModalWindow from "./modal-window";
|
|
6
|
+
import NotificationPane from "./notification-pane";
|
|
7
|
+
import debounce from "lodash/debounce";
|
|
8
|
+
|
|
9
|
+
class Corpsmap extends React.Component {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.renderSouthRegion = this.renderSouthRegion.bind(this);
|
|
13
|
+
this.setHeight = this.setHeight.bind(this);
|
|
14
|
+
this.resize = this.resize.bind(this);
|
|
15
|
+
|
|
16
|
+
this.setHeightDebounced = debounce(this.setHeight, 10);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
componentDidMount() {
|
|
20
|
+
this._isMounted = true;
|
|
21
|
+
const { doVLayoutSetHeight } = this.props;
|
|
22
|
+
doVLayoutSetHeight(this.el.offsetHeight);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
componentWillUnmount() {
|
|
26
|
+
this._isMounted = false;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
setHeight(clientY) {
|
|
30
|
+
const { doVLayoutResize, vLayoutHeight } = this.props;
|
|
31
|
+
if (clientY > 45 && clientY < vLayoutHeight) {
|
|
32
|
+
const hNorth = clientY / vLayoutHeight;
|
|
33
|
+
const hSouth = 1 - hNorth;
|
|
34
|
+
doVLayoutResize(hNorth, hSouth);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
resize(e) {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
const clientY = e.clientY;
|
|
41
|
+
this.setHeightDebounced(clientY);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
renderSouthRegion() {
|
|
45
|
+
const { doSouthRegionClose, theme, southHeight } = this.props;
|
|
46
|
+
if (!southHeight) return null;
|
|
47
|
+
return (
|
|
48
|
+
<div>
|
|
49
|
+
<div
|
|
50
|
+
draggable="true"
|
|
51
|
+
onDrag={this.resize}
|
|
52
|
+
className={theme + " n-s-drag-handle"}
|
|
53
|
+
>
|
|
54
|
+
<span onClick={doSouthRegionClose} className="pull-right">
|
|
55
|
+
<i className="mdi mdi-close"></i>
|
|
56
|
+
</span>
|
|
57
|
+
</div>
|
|
58
|
+
<SouthRegion height={southHeight - 5} />
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
render() {
|
|
64
|
+
const { northHeight } = this.props;
|
|
65
|
+
return (
|
|
66
|
+
<div
|
|
67
|
+
className="corpsmap cm-container-fluid"
|
|
68
|
+
style={{ padding: 0 }}
|
|
69
|
+
ref={(el) => {
|
|
70
|
+
this.el = el;
|
|
71
|
+
}}
|
|
72
|
+
>
|
|
73
|
+
<NorthRegion height={northHeight} />
|
|
74
|
+
{this.renderSouthRegion()}
|
|
75
|
+
<ModalWindow />
|
|
76
|
+
<NotificationPane />
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export default connect(
|
|
83
|
+
"selectTheme",
|
|
84
|
+
"selectNorthHeight",
|
|
85
|
+
"selectSouthHeight",
|
|
86
|
+
"selectVLayoutHeight",
|
|
87
|
+
"doSouthRegionClose",
|
|
88
|
+
"doVLayoutResize",
|
|
89
|
+
"doVLayoutSetHeight",
|
|
90
|
+
Corpsmap
|
|
91
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
+
import PluginRegion from "../utils/plugin-region";
|
|
4
|
+
import PrimaryPanel from "./primary-panel";
|
|
5
|
+
import BasicToolbar from "./basic-toolbar";
|
|
6
|
+
|
|
7
|
+
class LeftSidebar extends React.Component {
|
|
8
|
+
render() {
|
|
9
|
+
const { theme, componentsLeftSidebarBottom, componentsLeftSidebarTop } =
|
|
10
|
+
this.props;
|
|
11
|
+
|
|
12
|
+
const noComponents =
|
|
13
|
+
componentsLeftSidebarBottom.length + componentsLeftSidebarTop.length;
|
|
14
|
+
if (!noComponents) return null;
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div className={"sidebar sidebar-left " + theme}>
|
|
18
|
+
<PluginRegion
|
|
19
|
+
className="sidebar-buttons-top"
|
|
20
|
+
components={componentsLeftSidebarTop}
|
|
21
|
+
styleOverride={{ width: "100%" }}
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
<PluginRegion
|
|
25
|
+
className="sidebar-buttons-bottom"
|
|
26
|
+
components={componentsLeftSidebarBottom}
|
|
27
|
+
styleOverride={{ width: "100%" }}
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<PrimaryPanel />
|
|
31
|
+
|
|
32
|
+
<BasicToolbar />
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default connect(
|
|
39
|
+
"selectTheme",
|
|
40
|
+
"selectComponentsLeftSidebarTop",
|
|
41
|
+
"selectComponentsLeftSidebarBottom",
|
|
42
|
+
LeftSidebar
|
|
43
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
+
import PluginRegion from "../utils/plugin-region";
|
|
4
|
+
|
|
5
|
+
class LowerRightToolbar extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
const { theme, componentsLowerRight } = this.props;
|
|
8
|
+
return (
|
|
9
|
+
<div
|
|
10
|
+
className={"toolbar toolbar-lower-right " + theme}
|
|
11
|
+
style={{ right: 49 }}
|
|
12
|
+
>
|
|
13
|
+
<div className="cm-btn-group">
|
|
14
|
+
<PluginRegion
|
|
15
|
+
className="toolbar-horizontal-right"
|
|
16
|
+
components={componentsLowerRight}
|
|
17
|
+
styleOverride={{}}
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default connect(
|
|
26
|
+
"selectTheme",
|
|
27
|
+
"selectComponentsLowerRight",
|
|
28
|
+
LowerRightToolbar
|
|
29
|
+
);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
+
|
|
4
|
+
class Map extends React.Component {
|
|
5
|
+
componentDidMount() {
|
|
6
|
+
const { doMapInitialize, viewState, limitMapExtent } = this.props;
|
|
7
|
+
const { center, zoom, rotation, minZoom, maxZoom } = viewState;
|
|
8
|
+
|
|
9
|
+
if (this.mapEl) {
|
|
10
|
+
doMapInitialize(this.mapEl, {
|
|
11
|
+
center: center,
|
|
12
|
+
zoom: zoom,
|
|
13
|
+
rotation: rotation,
|
|
14
|
+
minZoom: minZoom,
|
|
15
|
+
maxZoom: maxZoom,
|
|
16
|
+
layers: [],
|
|
17
|
+
limitMapExtent: limitMapExtent,
|
|
18
|
+
});
|
|
19
|
+
// doAddMapDragDropListeners(this.mapEl);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
render() {
|
|
24
|
+
const {
|
|
25
|
+
componentsLeftSidebarCount,
|
|
26
|
+
componentsRightSidebarCount,
|
|
27
|
+
cursorClass,
|
|
28
|
+
} = this.props;
|
|
29
|
+
const style = {
|
|
30
|
+
position: "absolute",
|
|
31
|
+
top: 0,
|
|
32
|
+
left: componentsLeftSidebarCount > 0 ? 49 : 0,
|
|
33
|
+
right: componentsRightSidebarCount > 0 ? 49 : 0,
|
|
34
|
+
bottom: 0,
|
|
35
|
+
};
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
id="map"
|
|
39
|
+
className={cursorClass}
|
|
40
|
+
ref={(el) => {
|
|
41
|
+
this.mapEl = el;
|
|
42
|
+
}}
|
|
43
|
+
style={style}
|
|
44
|
+
/>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default connect(
|
|
50
|
+
"doMapInitialize",
|
|
51
|
+
"selectLimitMapExtent",
|
|
52
|
+
"selectViewState",
|
|
53
|
+
"selectCursorClass",
|
|
54
|
+
"selectComponentsLeftSidebarCount",
|
|
55
|
+
"selectComponentsRightSidebarCount",
|
|
56
|
+
Map
|
|
57
|
+
);
|