@corpsmap/corpsmap 3.2.99 → 3.2.100
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/.babelrc +7 -0
- package/css/corpsmap.css +10179 -0
- package/fonts/cm.eot +0 -0
- package/fonts/cm.svg +27 -0
- 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 +288 -0
- 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 +98 -0
- package/fonts/maki.ttf +0 -0
- package/fonts/maki.woff +0 -0
- package/fonts/mapskin.eot +0 -0
- package/fonts/mapskin.svg +282 -0
- package/fonts/mapskin.ttf +0 -0
- package/fonts/mapskin.woff +0 -0
- package/fonts/materialdesignicons-webfont.eot +0 -0
- package/fonts/materialdesignicons-webfont.svg +7467 -0
- 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 +5 -0
- package/lib/dev.js +171156 -0
- package/lib/prod.js +171070 -0
- package/package.json +87 -82
- package/rollup.config.js +50 -0
- package/src/application-bundles/api-bundle.js +74 -76
- package/src/application-bundles/basic-toolbar-bundle.js +57 -57
- package/src/application-bundles/create-ol-map-bundle.js +257 -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 +69 -73
- package/src/application-bundles/map-layers-bundle.js +35 -42
- package/src/application-bundles/map-view-bundle.js +312 -0
- package/src/application-bundles/notification-bundle.js +32 -37
- 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 +88 -96
- package/src/application-bundles/vertical-layout-bundle.js +88 -88
- package/src/application-bundles/viewport-bundle.js +18 -19
- package/src/application-bundles-old/ui-bundle.js +179 -240
- package/src/application-containers/{basic-toolbar.jsx → basic-toolbar.js} +24 -24
- package/src/application-containers/{corpsmap.jsx → corpsmap.js} +2 -7
- package/src/application-containers/{left-sidebar.jsx → left-sidebar.js} +6 -3
- package/src/application-containers/{lower-right-toolbar.jsx → lower-right-toolbar.js} +11 -12
- package/src/application-containers/map.js +45 -0
- package/src/application-containers/{modal-window.jsx → modal-window.js} +15 -13
- package/src/application-containers/{north-region.jsx → north-region.js} +25 -26
- package/src/application-containers/{notification-pane.jsx → notification-pane.js} +37 -37
- package/src/application-containers/{notification-quadrant.jsx → notification-quadrant.js} +20 -20
- package/src/application-containers/{notification.jsx → notification.js} +91 -91
- package/src/application-containers/old_corpsmap.js +97 -0
- package/src/application-containers/{primary-panel.jsx → primary-panel.js} +94 -94
- package/src/application-containers/right-sidebar.js +41 -0
- package/src/application-containers/secondary-panel.js +0 -0
- package/src/application-containers/{south-region-tab.jsx → south-region-tab.js} +17 -26
- package/src/application-containers/south-region.js +79 -0
- package/src/application-containers/upper-right-toolbar.js +27 -0
- package/src/application-controls/{basic-toolbar-button.jsx → basic-toolbar-button.js} +124 -124
- package/src/application-controls/{index.jsx → index.js} +34 -34
- package/src/application-controls/{search-results-list-item.jsx → search-results-list-item.js} +50 -50
- package/src/application-controls/{sidebar-button.jsx → sidebar-button.js} +69 -69
- package/src/application-controls/{sidebar-panel-opener.jsx → sidebar-panel-opener.js} +4 -4
- package/src/application-controls/{tree-list-folder.jsx → tree-list-folder.js} +46 -46
- package/src/application-controls/tree-list-item.js +71 -0
- package/src/application-exports/{map-provider.jsx → map-provider.js} +100 -122
- package/src/config/default-config.js +68 -53
- package/src/core-plugins/add-data/{add-data-button.jsx → add-data-button.js} +34 -34
- package/src/core-plugins/add-data/{add-geojson.jsx → add-geojson.js} +47 -47
- package/src/core-plugins/add-data/{add-kmlfile.jsx → add-kmlfile.js} +46 -46
- package/src/core-plugins/add-data/add-shapefile.js +43 -0
- package/src/core-plugins/add-data/bundle.js +225 -226
- package/src/core-plugins/basemap-switcher/basemap-switcher-list-item copy.js +59 -0
- package/src/core-plugins/basemap-switcher/{basemap-switcher-list-item.jsx → basemap-switcher-list-item.js} +45 -48
- package/src/core-plugins/basemap-switcher/{basemap-switcher-list.jsx → basemap-switcher-list.js} +1 -1
- package/src/core-plugins/bookmarks/{bookmark-list-item.jsx → bookmark-list-item.js} +22 -26
- package/src/core-plugins/bookmarks/{bookmark-list.jsx → bookmark-list.js} +1 -1
- package/src/core-plugins/bookmarks/bookmark-panel.js +157 -0
- package/src/core-plugins/catalog/catalog-button.js +36 -0
- package/src/core-plugins/catalog/catalog-list-item.js +83 -0
- package/src/core-plugins/catalog/catalog-list.js +70 -0
- package/src/core-plugins/catalog/{catalog-modal-window.jsx → catalog-modal-window.js} +25 -35
- package/src/core-plugins/change-log/bundle.js +2 -2
- package/src/core-plugins/change-log/{change-log-button.jsx → change-log-button.js} +44 -40
- package/src/core-plugins/change-log/{change-log-modal.jsx → change-log-modal.js} +11 -4
- package/src/core-plugins/change-log/index.js +14 -14
- package/src/core-plugins/change-log/{select-district.jsx → select-district.js} +73 -73
- package/src/core-plugins/contact-form/bundle.js +244 -239
- package/src/core-plugins/contact-form/index.js +17 -17
- package/src/core-plugins/contact-form/{question-button.jsx → question-button.js} +36 -36
- package/src/core-plugins/contact-form/{question-modal.jsx → question-modal.js} +189 -215
- package/src/core-plugins/coordinate-display/bundle.js +246 -0
- package/src/core-plugins/coordinate-display/{coordinate-display-bar.jsx → coordinate-display-bar.js} +66 -66
- package/src/core-plugins/coordinate-display/{coordinate-display-settings.jsx → coordinate-display-settings.js} +7 -3
- package/src/core-plugins/coordinate-display/{coordinate-interaction-bar.jsx → coordinate-interaction-bar.js} +1 -1
- package/src/core-plugins/coordinate-display/{coordinate-lat-lon-input.jsx → coordinate-lat-lon-input.js} +35 -35
- package/src/core-plugins/coordinate-display/{coordinate-popup.jsx → coordinate-popup.js} +27 -27
- package/src/core-plugins/draw-tools/create-draw-bundle.js +138 -148
- package/src/core-plugins/draw-tools/draw-button.js +192 -0
- package/src/core-plugins/draw-tools-old/create-draw-bundle.js +127 -137
- package/src/core-plugins/draw-tools-old/draw-button.js +78 -90
- package/src/core-plugins/editor/editor-base.js +10 -8
- package/src/core-plugins/editor/editor-button.js +92 -122
- package/src/core-plugins/editor/editor-table.js +61 -62
- package/src/core-plugins/geocoder/{bundle.jsx → bundle.js} +186 -186
- package/src/core-plugins/geocoder/index.js +14 -14
- package/src/core-plugins/geocoder/{overlay.jsx → overlay.js} +30 -30
- package/src/core-plugins/geocoder/{search-bar.jsx → search-bar.js} +122 -121
- package/src/core-plugins/geocoder/search-bar.js copy.save +123 -123
- package/src/core-plugins/identify/{bundle.jsx → bundle.js} +707 -709
- package/src/core-plugins/identify/{identify-buffer-section.jsx → identify-buffer-section.js} +52 -52
- package/src/core-plugins/identify/{identify-buffer-settings.jsx → identify-buffer-settings.js} +48 -48
- package/src/core-plugins/identify/{identify-button.jsx → identify-button.js} +100 -100
- package/src/core-plugins/identify/{identify-details-table.jsx → identify-details-table.js} +118 -121
- package/src/core-plugins/identify/identify-details.js +69 -69
- package/src/core-plugins/identify/{identify-sidebar-list-item.jsx → identify-sidebar-list-item.js} +99 -106
- package/src/core-plugins/identify/{identify-sidebar.jsx → identify-sidebar.js} +99 -103
- package/src/core-plugins/identify/{identify-table-cell.jsx → identify-table-cell.js} +49 -49
- package/src/core-plugins/identify/{identify-table.jsx → identify-table.js} +334 -319
- 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.js +158 -0
- package/src/core-plugins/identify/listeners/raster.js +89 -89
- package/src/core-plugins/identify/listeners/{vector.jsx → vector.js} +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 +143 -164
- package/src/core-plugins/identify-vector/{bundle.jsx → bundle.js} +135 -135
- package/src/core-plugins/identify-wms/bundle.js +138 -138
- package/src/core-plugins/legend/bundle.js +732 -755
- package/src/core-plugins/legend/{legend-header.jsx → legend-header.js} +1 -1
- package/src/core-plugins/legend/{legend-item-multiple.jsx → legend-item-multiple.js} +32 -32
- package/src/core-plugins/legend/{legend-panel.jsx → legend-panel.js} +1 -1
- package/src/core-plugins/login/login-button.js +49 -0
- package/src/core-plugins/map-loading-indicator/{loading-indicator.jsx → loading-indicator.js} +1 -1
- package/src/core-plugins/measure-tools/{measure-options.jsx → measure-options.js} +8 -5
- package/src/core-plugins/measure-tools/{measure-tools-button.jsx → measure-tools-button.js} +1 -1
- package/src/core-plugins/permalink/{permalink-button.jsx → permalink-button.js} +13 -13
- package/src/core-plugins/permalink/permalink-modal.js +64 -0
- package/src/core-plugins/print-map/{bundle.jsx → bundle.js} +316 -316
- package/src/core-plugins/print-map/{button.jsx → button.js} +1 -1
- package/src/core-plugins/resources/bundle.js +50 -55
- package/src/core-plugins/resources/resources-button.js +44 -0
- package/src/core-plugins/resources/{resources-modal.jsx → resources-modal.js} +3 -9
- package/src/core-plugins/rotate-north/{rotate-north-button.jsx → rotate-north-button.js} +2 -2
- package/src/core-plugins/theme-switcher/{theme-list-item.jsx → theme-list-item.js} +3 -3
- package/src/core-plugins/theme-switcher/{theme-list.jsx → theme-list.js} +1 -1
- package/src/core-plugins/three-d/three-d-button.js +44 -0
- package/src/core-plugins/tree-view/bundle.js +513 -513
- package/src/core-plugins/tree-view/{dataset-info-modal.jsx → dataset-info-modal.js} +141 -141
- package/src/core-plugins/tree-view/{dataset-legend.jsx → dataset-legend.js} +122 -122
- package/src/core-plugins/tree-view/{defaults-container.jsx → defaults-container.js} +27 -27
- package/src/core-plugins/tree-view/download-bundle.js +156 -156
- package/src/core-plugins/tree-view/{favorites-container.jsx → favorites-container.js} +27 -27
- package/src/core-plugins/tree-view/index.js +25 -25
- package/src/core-plugins/tree-view/layer-subpanel/{defaults-toggle.jsx → defaults-toggle.js} +28 -28
- package/src/core-plugins/tree-view/layer-subpanel/{download-layer.jsx → download-layer.js} +54 -54
- package/src/core-plugins/tree-view/layer-subpanel/{favorites-toggle.jsx → favorites-toggle.js} +28 -28
- package/src/core-plugins/tree-view/layer-subpanel/{label-toggle.jsx → label-toggle.js} +14 -15
- package/src/core-plugins/tree-view/layer-subpanel/{layer-subpanel.jsx → layer-subpanel.js} +180 -179
- package/src/core-plugins/tree-view/layer-subpanel/{natick-rgb.jsx → natick-rgb.js} +37 -49
- package/src/core-plugins/tree-view/layer-subpanel/remove-layer.js +61 -0
- package/src/core-plugins/tree-view/{tree-list-container.jsx → tree-list-container.js} +5 -2
- package/src/core-plugins/tree-view/{tree-list-item-dataset.jsx → tree-list-item-dataset.js} +1 -1
- package/src/core-plugins/tree-view/{tree-list-item-folder.jsx → tree-list-item-folder.js} +163 -161
- package/src/core-plugins/tree-view/{tree-list-item.jsx → tree-list-item.js} +2 -2
- package/src/core-plugins/tree-view/{tree-list.jsx → tree-list.js} +29 -37
- package/src/core-plugins/tree-view/{tree-view-panel.jsx → tree-view-panel.js} +148 -139
- package/src/core-plugins/tree-view/tree-view-toolbar/{add-all.jsx → add-all.js} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{defaults.jsx → defaults.js} +40 -40
- package/src/core-plugins/tree-view/tree-view-toolbar/{favorites.jsx → favorites.js} +40 -40
- package/src/core-plugins/tree-view/tree-view-toolbar/{remove-all.jsx → remove-all.js} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{toggle-expand.jsx → toggle-expand.js} +1 -1
- package/src/core-plugins/tree-view/tree-view-toolbar/{toggle-filter.jsx → toggle-filter.js} +1 -1
- package/src/core-plugins/zoom-home/bundle.js +22 -28
- package/src/core-plugins/zoom-home/index.js +3 -5
- package/src/core-plugins/zoom-home/{zoom-home-button.jsx → zoom-home-button.js} +2 -2
- package/src/core-plugins/zoom-in-out/index.js +14 -19
- package/src/core-plugins/zoom-in-out/{zoom-in-button.jsx → zoom-in-button.js} +10 -7
- package/src/core-plugins/zoom-in-out/{zoom-out-button.jsx → zoom-out-button.js} +10 -7
- package/src/core-plugins/zoom-level/bundle.js +32 -35
- package/src/core-plugins/zoom-level/index.js +16 -17
- package/src/core-plugins/zoom-level/{zoom-indicator.jsx → zoom-indicator.js} +35 -34
- package/src/core-plugins/zoom-to-box/bundle.js +42 -52
- package/src/core-plugins/zoom-to-box/{zoom-to-box-button.jsx → zoom-to-box-button.js} +13 -9
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.css +124 -399
- package/src/css/_deprecated_bootstrap/css/bootstrap-paper.min.css +3 -8075
- package/src/css/_deprecated_bootstrap/css/bootstrap-simplex.min.css +3 -7320
- package/src/css/_deprecated_bootstrap/css/bootstrap.css +202 -582
- package/src/css/_deprecated_bootstrap/css/bootstrap.css.map +1 -142
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css +2 -7128
- package/src/css/_deprecated_bootstrap/css/bootstrap.min.css.map +1 -143
- package/src/css/bg-colors.css +120 -120
- package/src/css/corpsmap-namespaced.css +9505 -9505
- package/src/css/corpsmap.css +9161 -10067
- package/src/css/navigation.css +174 -174
- package/src/{index.jsx → index.js} +109 -113
- package/src/openlayers-utils/format-utilities.js +71 -87
- package/src/openlayers-utils/layer-utilities.js +302 -309
- package/src/openlayers-utils/vector-style.js +131 -131
- package/src/utils/load-plugins.test.js +35 -35
- package/src/utils/scale-to-zoom-level.js +22 -18
- package/README.md +0 -33
- package/dist/corpsmap.css +0 -1
- package/dist/corpsmap.es.js +0 -63856
- package/dist/corpsmap.umd.js +0 -384
- package/dist/vite.svg +0 -1
- package/src/App.css +0 -42
- package/src/App.jsx +0 -12
- package/src/application-bundles/create-ol-map-bundle.jsx +0 -278
- package/src/application-bundles/map-view-bundle.jsx +0 -334
- package/src/application-containers/map.jsx +0 -57
- package/src/application-containers/right-sidebar.jsx +0 -44
- package/src/application-containers/south-region.jsx +0 -75
- package/src/application-containers/upper-right-toolbar.jsx +0 -28
- package/src/application-controls/tree-list-item.jsx +0 -83
- package/src/assets/react.svg +0 -1
- package/src/core-plugins/add-data/add-shapefile.jsx +0 -47
- package/src/core-plugins/bookmarks/bookmark-panel.jsx +0 -191
- package/src/core-plugins/catalog/catalog-button.jsx +0 -33
- package/src/core-plugins/catalog/catalog-list-item.jsx +0 -118
- package/src/core-plugins/catalog/catalog-list.jsx +0 -78
- package/src/core-plugins/coordinate-display/bundle.jsx +0 -269
- package/src/core-plugins/draw-tools/draw-button.jsx +0 -204
- package/src/core-plugins/identify/listeners/geojson.jsx +0 -164
- package/src/core-plugins/login/login-button.jsx +0 -49
- package/src/core-plugins/permalink/permalink-modal.jsx +0 -67
- package/src/core-plugins/resources/resources-button.jsx +0 -40
- package/src/core-plugins/three-d/three-d-button.jsx +0 -44
- package/src/core-plugins/tree-view/layer-subpanel/remove-layer.jsx +0 -75
- package/src/index.css +0 -68
- package/src/main.jsx +0 -3
- package/src/utils/redux-bundler-react.jsx +0 -69
- /package/src/application-controls/{basic-toolbar-menu-divider.jsx → basic-toolbar-menu-divider.js} +0 -0
- /package/src/application-controls/{basic-toolbar-menu-item.jsx → basic-toolbar-menu-item.js} +0 -0
- /package/src/application-controls/{basic-toolbar-menu-up.jsx → basic-toolbar-menu-up.js} +0 -0
- /package/src/application-controls/{basic-toolbar-menu.jsx → basic-toolbar-menu.js} +0 -0
- /package/src/application-controls/{basic-toolbar-submenu.jsx → basic-toolbar-submenu.js} +0 -0
- /package/src/application-controls/{loading-indicator.jsx → loading-indicator.js} +0 -0
- /package/src/application-controls/{search-input.jsx → search-input.js} +0 -0
- /package/src/application-controls/{search-results-list.jsx → search-results-list.js} +0 -0
- /package/src/application-controls/{tree-list.jsx → tree-list.js} +0 -0
- /package/src/application-controls/{tree-view.jsx → tree-view.js} +0 -0
- /package/src/core-plugins/basemap-switcher/{basemap-switcher-button.jsx → basemap-switcher-button.js} +0 -0
- /package/src/core-plugins/bookmarks/{bookmark-button.jsx → bookmark-button.js} +0 -0
- /package/src/core-plugins/catalog/{catalog-error-item.jsx → catalog-error-item.js} +0 -0
- /package/src/core-plugins/catalog/{catalog-list-item-loader.jsx → catalog-list-item-loader.js} +0 -0
- /package/src/core-plugins/coordinate-display/{coordinate-display-proj-item.jsx → coordinate-display-proj-item.js} +0 -0
- /package/src/core-plugins/draw-tools/{draw-save-bundle.jsx → draw-save-bundle.js} +0 -0
- /package/src/core-plugins/draw-tools/{draw-tool-item.jsx → draw-tool-item.js} +0 -0
- /package/src/core-plugins/identify/{identify-popup.jsx → identify-popup.js} +0 -0
- /package/src/core-plugins/identify/{identify-sidebar-list.jsx → identify-sidebar-list.js} +0 -0
- /package/src/core-plugins/legend/{legend-button.jsx → legend-button.js} +0 -0
- /package/src/core-plugins/legend/{legend-item.jsx → legend-item.js} +0 -0
- /package/src/core-plugins/theme-switcher/{theme-switcher-button.jsx → theme-switcher-button.js} +0 -0
- /package/src/core-plugins/tree-view/{boundary-drop-target.jsx → boundary-drop-target.js} +0 -0
- /package/src/core-plugins/tree-view/layer-subpanel/{natick-rgb-options.jsx → natick-rgb-options.js} +0 -0
- /package/src/core-plugins/tree-view/layer-subpanel/{opacity-slider.jsx → opacity-slider.js} +0 -0
- /package/src/core-plugins/tree-view/{tree-view-button.jsx → tree-view-button.js} +0 -0
- /package/src/core-plugins/zoom-to-box/{index.jsx → index.js} +0 -0
- /package/src/utils/{plugin-region.jsx → plugin-region.js} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
-
import PluginRegion from "../utils/plugin-region";
|
|
4
|
-
import UpperRightToolbar from "./upper-right-toolbar";
|
|
5
|
-
import LowerRightToolbar from "./lower-right-toolbar";
|
|
6
|
-
|
|
7
|
-
class RightSidebar extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
const {
|
|
10
|
-
theme,
|
|
11
|
-
componentsRightSidebarBottom,
|
|
12
|
-
componentsRightSidebarTop,
|
|
13
|
-
componentsRightSidebarCount,
|
|
14
|
-
} = this.props;
|
|
15
|
-
|
|
16
|
-
if (!componentsRightSidebarCount) return null;
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className={"sidebar sidebar-right " + theme}>
|
|
20
|
-
<PluginRegion
|
|
21
|
-
className="sidebar-buttons-top"
|
|
22
|
-
components={componentsRightSidebarTop}
|
|
23
|
-
/>
|
|
24
|
-
|
|
25
|
-
<PluginRegion
|
|
26
|
-
className="sidebar-buttons-bottom"
|
|
27
|
-
components={componentsRightSidebarBottom}
|
|
28
|
-
/>
|
|
29
|
-
|
|
30
|
-
<UpperRightToolbar />
|
|
31
|
-
|
|
32
|
-
<LowerRightToolbar />
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default connect(
|
|
39
|
-
"selectTheme",
|
|
40
|
-
"selectComponentsRightSidebarTop",
|
|
41
|
-
"selectComponentsRightSidebarBottom",
|
|
42
|
-
"selectComponentsRightSidebarCount",
|
|
43
|
-
RightSidebar
|
|
44
|
-
);
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* eslint jsx-a11y/anchor-is-valid: 0 */
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { connect } from "../utils/redux-bundler-react";
|
|
4
|
-
import ErrorBoundary from "../utils/error-boundary";
|
|
5
|
-
import classnames from "classnames";
|
|
6
|
-
import SouthRegionTab from "./south-region-tab";
|
|
7
|
-
|
|
8
|
-
class SouthRegion extends React.Component {
|
|
9
|
-
constructor(props) {
|
|
10
|
-
super(props);
|
|
11
|
-
this.state = {
|
|
12
|
-
activeTab: 0,
|
|
13
|
-
};
|
|
14
|
-
this.setActiveTab = this.setActiveTab.bind(this);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
setActiveTab(i) {
|
|
18
|
-
this.setState({ activeTab: i });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
render() {
|
|
22
|
-
const { activeTab } = this.state;
|
|
23
|
-
const { height, southRegionChildren } = this.props;
|
|
24
|
-
return (
|
|
25
|
-
<div
|
|
26
|
-
className="south-container"
|
|
27
|
-
style={{
|
|
28
|
-
position: "relative",
|
|
29
|
-
height: height,
|
|
30
|
-
left: 0,
|
|
31
|
-
right: 0,
|
|
32
|
-
bottom: 0,
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
35
|
-
<ErrorBoundary>
|
|
36
|
-
<div id="south-panel-content">
|
|
37
|
-
<ul className="cm-nav cm-nav-tabs">
|
|
38
|
-
{southRegionChildren.map((child, i) => {
|
|
39
|
-
const activeClass = classnames({
|
|
40
|
-
active: i === activeTab,
|
|
41
|
-
});
|
|
42
|
-
const displayName = child.displayName || "TABLE";
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<SouthRegionTab
|
|
46
|
-
key={child.uid}
|
|
47
|
-
idx={i}
|
|
48
|
-
activeClass={activeClass}
|
|
49
|
-
displayName={displayName}
|
|
50
|
-
child={child}
|
|
51
|
-
onSelect={this.setActiveTab}
|
|
52
|
-
/>
|
|
53
|
-
);
|
|
54
|
-
})}
|
|
55
|
-
</ul>
|
|
56
|
-
{southRegionChildren.map((child, i) => {
|
|
57
|
-
const Comp = child.component;
|
|
58
|
-
const options = child.options || {};
|
|
59
|
-
const panelClass = classnames({
|
|
60
|
-
hidden: i !== activeTab,
|
|
61
|
-
});
|
|
62
|
-
return (
|
|
63
|
-
<div className={panelClass} key={i}>
|
|
64
|
-
<Comp key={child.uid} {...options} />
|
|
65
|
-
</div>
|
|
66
|
-
);
|
|
67
|
-
})}
|
|
68
|
-
</div>
|
|
69
|
-
</ErrorBoundary>
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export default connect("selectSouthRegionChildren", SouthRegion);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
-
import PluginRegion from "../utils/plugin-region";
|
|
4
|
-
|
|
5
|
-
class UpperRightToolbar extends React.Component {
|
|
6
|
-
render() {
|
|
7
|
-
const { theme, componentsUpperRight } = this.props;
|
|
8
|
-
return (
|
|
9
|
-
<div
|
|
10
|
-
className={"toolbar toolbar-upper-right " + theme}
|
|
11
|
-
style={{ right: 49 }}
|
|
12
|
-
>
|
|
13
|
-
<div className="cm-btn-group">
|
|
14
|
-
<PluginRegion
|
|
15
|
-
className="toolbar-horizontal-right"
|
|
16
|
-
components={componentsUpperRight}
|
|
17
|
-
/>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default connect(
|
|
25
|
-
"selectTheme",
|
|
26
|
-
"selectComponentsUpperRight",
|
|
27
|
-
UpperRightToolbar
|
|
28
|
-
);
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import TreeList from "./tree-list";
|
|
3
|
-
import TreeListFolder from "./tree-list-folder";
|
|
4
|
-
import classnames from "classnames";
|
|
5
|
-
import _ from "lodash";
|
|
6
|
-
|
|
7
|
-
class TreeListItem extends React.Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
|
|
11
|
-
this.state = {
|
|
12
|
-
collapsed: props.item.collapsed,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
this.renderItemComponent = this.renderItemComponent.bind(this);
|
|
16
|
-
this.handleClick = this.handleClick.bind(this);
|
|
17
|
-
this.toggleCollapsed = this.toggleCollapsed.bind(this);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
toggleCollapsed() {
|
|
21
|
-
this.setState({ collapsed: !this.state.collapsed });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
handleClick(e) {
|
|
25
|
-
const { item, onSelect } = this.props;
|
|
26
|
-
onSelect({
|
|
27
|
-
ctrl: e.ctrlKey,
|
|
28
|
-
shift: e.shiftKey,
|
|
29
|
-
item: item,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
renderItemComponent() {
|
|
34
|
-
const { item, components, componentMatches } = this.props;
|
|
35
|
-
const { collapsed } = this.state;
|
|
36
|
-
|
|
37
|
-
if (!item.leaf)
|
|
38
|
-
return (
|
|
39
|
-
<TreeListFolder
|
|
40
|
-
item={item}
|
|
41
|
-
collapsed={collapsed}
|
|
42
|
-
toggleCollapsed={this.toggleCollapsed}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
let Comp = components[0];
|
|
47
|
-
if (componentMatches.length) {
|
|
48
|
-
for (let i = 0; i < componentMatches.length; i++) {
|
|
49
|
-
if (_.isMatch(item, componentMatches[i])) {
|
|
50
|
-
Comp = components[i];
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return <Comp item={item} />;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
render() {
|
|
59
|
-
const { item, components, componentMatches, onSelect } = this.props;
|
|
60
|
-
const { collapsed } = this.state;
|
|
61
|
-
|
|
62
|
-
const itemClass = classnames({
|
|
63
|
-
"tree-list-item": true,
|
|
64
|
-
hidden: false,
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<li className={itemClass} onClick={this.handleClick}>
|
|
69
|
-
{this.renderItemComponent()}
|
|
70
|
-
<TreeList
|
|
71
|
-
items={item.children}
|
|
72
|
-
item={item}
|
|
73
|
-
collapsed={collapsed}
|
|
74
|
-
components={components}
|
|
75
|
-
componentMatches={componentMatches}
|
|
76
|
-
onSelect={onSelect}
|
|
77
|
-
/>
|
|
78
|
-
</li>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export default TreeListItem;
|
package/src/assets/react.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,47 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BasicToolbarMenuItem } from "../../application-controls";
|
|
3
|
-
import { connect } from "../../utils/redux-bundler-react";
|
|
4
|
-
|
|
5
|
-
class AddShapefileButton 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.shapefileInput.click();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
handleFile(e) {
|
|
17
|
-
const { doAddDataFile } = this.props;
|
|
18
|
-
const file = this.shapefileInput.files[0];
|
|
19
|
-
doAddDataFile(file);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
render() {
|
|
23
|
-
return (
|
|
24
|
-
<BasicToolbarMenuItem
|
|
25
|
-
active={false}
|
|
26
|
-
iconClass="ms ms-shp icon-inline"
|
|
27
|
-
title="Add Local Shapefile"
|
|
28
|
-
text="Add Local Shapefile"
|
|
29
|
-
onClick={this.handleClick}
|
|
30
|
-
passProps={{}}
|
|
31
|
-
disableSubmenu={true}
|
|
32
|
-
>
|
|
33
|
-
<input
|
|
34
|
-
onChange={this.handleFile}
|
|
35
|
-
accept=".zip"
|
|
36
|
-
className="hidden"
|
|
37
|
-
type="file"
|
|
38
|
-
ref={(el) => {
|
|
39
|
-
this.shapefileInput = el;
|
|
40
|
-
}}
|
|
41
|
-
/>
|
|
42
|
-
</BasicToolbarMenuItem>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default connect("doAddDataFile", AddShapefileButton);
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { connect } from "../../utils/redux-bundler-react";
|
|
3
|
-
import BookmarkList from "./bookmark-list";
|
|
4
|
-
import classnames from "classnames";
|
|
5
|
-
|
|
6
|
-
class BookmarkPanel extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.state = {
|
|
10
|
-
name: "",
|
|
11
|
-
delay: 3000,
|
|
12
|
-
animating: false,
|
|
13
|
-
animIdx: 0,
|
|
14
|
-
};
|
|
15
|
-
this.updateName = this.updateName.bind(this);
|
|
16
|
-
this.updateDelay = this.updateDelay.bind(this);
|
|
17
|
-
this.handleKeyUp = this.handleKeyUp.bind(this);
|
|
18
|
-
this.save = this.save.bind(this);
|
|
19
|
-
this.play = this.play.bind(this);
|
|
20
|
-
this.stop = this.stop.bind(this);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
handleKeyUp(e) {
|
|
24
|
-
if (e.keyCode === 13) {
|
|
25
|
-
this.save();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
updateName(e) {
|
|
30
|
-
const val = e.currentTarget.value;
|
|
31
|
-
this.setState({
|
|
32
|
-
name: val,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
updateDelay(e) {
|
|
37
|
-
const val = e.currentTarget.value;
|
|
38
|
-
this.setState({
|
|
39
|
-
delay: val,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
save() {
|
|
44
|
-
const { name } = this.state;
|
|
45
|
-
const { doSaveBookmark, viewState } = this.props;
|
|
46
|
-
const newBookmark = Object.assign({ name: name }, viewState);
|
|
47
|
-
this.setState(
|
|
48
|
-
{
|
|
49
|
-
name: "",
|
|
50
|
-
},
|
|
51
|
-
() => {
|
|
52
|
-
doSaveBookmark(newBookmark);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
componentWillUnmount() {
|
|
58
|
-
this.stop();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
UNSAFE_componentWillReceiveProps(newProps) {
|
|
62
|
-
const { bookmarkAnimationIdx, bookmarksIsAnimating } = newProps;
|
|
63
|
-
if (
|
|
64
|
-
bookmarksIsAnimating &&
|
|
65
|
-
bookmarkAnimationIdx !== this.props.bookmarkAnimationIdx
|
|
66
|
-
)
|
|
67
|
-
this.goToBookmark(bookmarkAnimationIdx);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// componentDidUpdate(){
|
|
71
|
-
// const { bookmarkAnimationIdx, bookmarksIsAnimating } = this.props;
|
|
72
|
-
// if(bookmarksIsAnimating) this.goToBookmark(bookmarkAnimationIdx);
|
|
73
|
-
// }
|
|
74
|
-
|
|
75
|
-
goToBookmark(idx) {
|
|
76
|
-
const { bookmarks, doGoToBookmark } = this.props;
|
|
77
|
-
doGoToBookmark(bookmarks[idx]);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
play(e) {
|
|
81
|
-
if (e.currentTarget.disabled) return;
|
|
82
|
-
const {
|
|
83
|
-
doIncrementBookmarkAnimation,
|
|
84
|
-
doStartBookmarkAnimation,
|
|
85
|
-
bookmarkAnimationIdx,
|
|
86
|
-
} = this.props;
|
|
87
|
-
const { delay } = this.state;
|
|
88
|
-
doStartBookmarkAnimation();
|
|
89
|
-
this.counter = window.setInterval(doIncrementBookmarkAnimation, delay);
|
|
90
|
-
this.goToBookmark(bookmarkAnimationIdx);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
stop() {
|
|
94
|
-
const { doStopBookmarkAnimation } = this.props;
|
|
95
|
-
window.clearInterval(this.counter);
|
|
96
|
-
doStopBookmarkAnimation();
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
render() {
|
|
100
|
-
const { name, delay } = this.state;
|
|
101
|
-
const { bookmarksLength, bookmarksIsAnimating } = this.props;
|
|
102
|
-
const disabled = name === "";
|
|
103
|
-
const btnClass = classnames({
|
|
104
|
-
"cm-btn": true,
|
|
105
|
-
"cm-btn-default": true,
|
|
106
|
-
"cm-btn-sm": true,
|
|
107
|
-
disabled: disabled,
|
|
108
|
-
});
|
|
109
|
-
return (
|
|
110
|
-
<div>
|
|
111
|
-
<div className="cm-form-group">
|
|
112
|
-
<div className="cm-input-group">
|
|
113
|
-
<input
|
|
114
|
-
onChange={this.updateName}
|
|
115
|
-
onKeyUp={this.handleKeyUp}
|
|
116
|
-
value={name}
|
|
117
|
-
type="text"
|
|
118
|
-
className="cm-form-control cm-input-sm"
|
|
119
|
-
placeholder="Name Bookmark..."
|
|
120
|
-
></input>
|
|
121
|
-
<span className="cm-input-group-btn">
|
|
122
|
-
<button
|
|
123
|
-
disabled={disabled}
|
|
124
|
-
onClick={this.save}
|
|
125
|
-
className={btnClass}
|
|
126
|
-
type="button"
|
|
127
|
-
>
|
|
128
|
-
<i className="mdi mdi-map-marker-plus icon-inline"></i>
|
|
129
|
-
Add New
|
|
130
|
-
</button>
|
|
131
|
-
</span>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<BookmarkList />
|
|
136
|
-
|
|
137
|
-
<div
|
|
138
|
-
className="cm-form-group"
|
|
139
|
-
style={{ position: "absolute", bottom: 0, left: 10, right: 12 }}
|
|
140
|
-
>
|
|
141
|
-
<div className="cm-input-group">
|
|
142
|
-
<input
|
|
143
|
-
disabled={bookmarksLength < 2 || bookmarksIsAnimating}
|
|
144
|
-
onChange={this.updateDelay}
|
|
145
|
-
value={delay}
|
|
146
|
-
type="number"
|
|
147
|
-
min={1000}
|
|
148
|
-
className="cm-form-control cm-input-sm"
|
|
149
|
-
placeholder="Delay..."
|
|
150
|
-
title="Animation Delay in Milliseconds"
|
|
151
|
-
></input>
|
|
152
|
-
<span className="cm-input-group-btn">
|
|
153
|
-
<button
|
|
154
|
-
disabled={bookmarksLength < 2 || bookmarksIsAnimating}
|
|
155
|
-
onClick={this.play}
|
|
156
|
-
className={btnClass}
|
|
157
|
-
type="button"
|
|
158
|
-
>
|
|
159
|
-
<i className="mdi mdi-play"></i>
|
|
160
|
-
</button>
|
|
161
|
-
</span>
|
|
162
|
-
<span className="cm-input-group-btn">
|
|
163
|
-
<button
|
|
164
|
-
disabled={bookmarksLength < 2 || !bookmarksIsAnimating}
|
|
165
|
-
onClick={this.stop}
|
|
166
|
-
className={btnClass}
|
|
167
|
-
type="button"
|
|
168
|
-
>
|
|
169
|
-
<i className="mdi mdi-stop"></i>
|
|
170
|
-
</button>
|
|
171
|
-
</span>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export default connect(
|
|
180
|
-
"selectViewState",
|
|
181
|
-
"selectBookmarks",
|
|
182
|
-
"selectBookmarksLength",
|
|
183
|
-
"selectBookmarksIsAnimating",
|
|
184
|
-
"selectBookmarkAnimationIdx",
|
|
185
|
-
"doSaveBookmark",
|
|
186
|
-
"doGoToBookmark",
|
|
187
|
-
"doStartBookmarkAnimation",
|
|
188
|
-
"doStopBookmarkAnimation",
|
|
189
|
-
"doIncrementBookmarkAnimation",
|
|
190
|
-
BookmarkPanel
|
|
191
|
-
);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { connect } from "../utils/redux-bundler-react";
|
|
3
|
-
import { SidebarButton } from "../../application-controls/index";
|
|
4
|
-
import Catalog from "./catalog-modal-window";
|
|
5
|
-
|
|
6
|
-
class CatalogButton extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.handleClick = this.handleClick.bind(this);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
handleClick() {
|
|
13
|
-
const { doModalOpen } = this.props;
|
|
14
|
-
doModalOpen({
|
|
15
|
-
children: [Catalog],
|
|
16
|
-
options: {},
|
|
17
|
-
openedBy: "Catalog",
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
render() {
|
|
22
|
-
return (
|
|
23
|
-
<SidebarButton
|
|
24
|
-
iconClass="mdi mdi-database-plus"
|
|
25
|
-
label="Data Catalog"
|
|
26
|
-
title="Data Catalog"
|
|
27
|
-
onClick={this.handleClick}
|
|
28
|
-
/>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default connect("doModalOpen", CatalogButton);
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* eslint jsx-a11y/anchor-is-valid: 0 */
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { connect } from "../utils/redux-bundler-react";
|
|
4
|
-
import classnames from "classnames";
|
|
5
|
-
import moment from "moment";
|
|
6
|
-
|
|
7
|
-
class CatalogListItem extends React.Component {
|
|
8
|
-
handleClick = (e) => {
|
|
9
|
-
const { active, item, doAddLayer, treeViewRootId } = this.props;
|
|
10
|
-
if (!active) {
|
|
11
|
-
item.parentUid = treeViewRootId;
|
|
12
|
-
item.visible = true;
|
|
13
|
-
doAddLayer(item);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
setSearchTerm = (e) => {
|
|
18
|
-
e.stopPropagation();
|
|
19
|
-
const val = e.currentTarget.innerText;
|
|
20
|
-
const { onSetSearchTerm } = this.props;
|
|
21
|
-
onSetSearchTerm(val);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
render() {
|
|
25
|
-
const { active, item, theme } = this.props;
|
|
26
|
-
const { keywords } = item;
|
|
27
|
-
const keywordArray = keywords ? keywords.split(",") : [];
|
|
28
|
-
if (item.nationalData) keywordArray.push("National Data");
|
|
29
|
-
|
|
30
|
-
const iconClass = classnames({
|
|
31
|
-
"dataset-list-icon": true,
|
|
32
|
-
"pull-left": true,
|
|
33
|
-
"dataset-national": item.national,
|
|
34
|
-
ms: true,
|
|
35
|
-
"ms-points": item.geometryType === "POINT",
|
|
36
|
-
"ms-line": item.geometryType === "LINE",
|
|
37
|
-
"ms-polygon": item.geometryType === "POLYGON",
|
|
38
|
-
"ms ms-shp": item.geometryType === "SERVICE",
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const listItemClass = classnames({
|
|
42
|
-
"cm-list-group-item": true,
|
|
43
|
-
"dataset-list-item": true,
|
|
44
|
-
[theme]: active,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
const Rows = (
|
|
48
|
-
<span className="info-item">
|
|
49
|
-
{item.numRows ? `(${item.numRows})` : null}
|
|
50
|
-
</span>
|
|
51
|
-
);
|
|
52
|
-
const DateAdded = (
|
|
53
|
-
<span className="info-item">
|
|
54
|
-
{moment(item.createDate, "YYYY-MM-DDTh:mm:ssZ").fromNow()}
|
|
55
|
-
</span>
|
|
56
|
-
);
|
|
57
|
-
const AddedBy = (
|
|
58
|
-
<span
|
|
59
|
-
title={"Added to " + item.teamName + " by " + item.createdByUsername}
|
|
60
|
-
className="info-item"
|
|
61
|
-
>
|
|
62
|
-
{item.createdByUsername}
|
|
63
|
-
</span>
|
|
64
|
-
);
|
|
65
|
-
const AddedTo = (
|
|
66
|
-
<a
|
|
67
|
-
onClick={this.setSearchTerm}
|
|
68
|
-
title={"Added to " + item.teamName + " by " + item.createdByUsername}
|
|
69
|
-
data-filter="true"
|
|
70
|
-
key={item.id + "-teamName"}
|
|
71
|
-
className="keyword-pill"
|
|
72
|
-
>
|
|
73
|
-
{item.teamName}
|
|
74
|
-
</a>
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<li onClick={this.handleClick} className={listItemClass}>
|
|
79
|
-
<div className="row">
|
|
80
|
-
<span className="col-xs-1">
|
|
81
|
-
<i className={iconClass}></i>
|
|
82
|
-
</span>
|
|
83
|
-
<span className="col-xs-5 dataset-display-name">
|
|
84
|
-
{item.displayName}
|
|
85
|
-
<div className="dataset-list-description">{item.description}</div>
|
|
86
|
-
</span>
|
|
87
|
-
<span className="col-xs-6 align-right">
|
|
88
|
-
{Rows}
|
|
89
|
-
{DateAdded}
|
|
90
|
-
{AddedBy}
|
|
91
|
-
{AddedTo}
|
|
92
|
-
<div>
|
|
93
|
-
{keywordArray.map((keyword, i) => {
|
|
94
|
-
return (
|
|
95
|
-
<span
|
|
96
|
-
onClick={this.setSearchTerm}
|
|
97
|
-
key={i}
|
|
98
|
-
className="label label-default"
|
|
99
|
-
style={{ marginRight: "3px" }}
|
|
100
|
-
>
|
|
101
|
-
{keyword}
|
|
102
|
-
</span>
|
|
103
|
-
);
|
|
104
|
-
})}
|
|
105
|
-
</div>
|
|
106
|
-
</span>
|
|
107
|
-
</div>
|
|
108
|
-
</li>
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export default connect(
|
|
114
|
-
"selectTheme",
|
|
115
|
-
"selectTreeViewRootId",
|
|
116
|
-
"doAddLayer",
|
|
117
|
-
CatalogListItem
|
|
118
|
-
);
|