@corpsmap/corpsmap 3.2.51 → 3.2.53

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.
@@ -42,6 +42,17 @@ const config = {
42
42
  accessToken: mapboxToken,
43
43
  visible: false
44
44
  },
45
+ {
46
+ id: "NEW MapBoxStreets",
47
+ name: "NEW MapBox Streets",
48
+ url:
49
+ "https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
50
+ attributions:
51
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
52
+ subdomains: "abcd",
53
+ accessToken: mapboxToken,
54
+ visible: false
55
+ },
45
56
  {
46
57
  id: "MapBoxAerial",
47
58
  name: "MapBox Aerial",
@@ -54,10 +65,10 @@ const config = {
54
65
  visible: false
55
66
  },
56
67
  {
57
- id: "MapBoxOutdoor",
58
- name: "MapBox Outdoor",
68
+ id: "NEW Satellite Streets",
69
+ name: "NEW Satellite Streets",
59
70
  url:
60
- "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
71
+ "https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
61
72
  attributions:
62
73
  'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
63
74
  subdomains: "abcd",
@@ -65,30 +76,82 @@ const config = {
65
76
  visible: false
66
77
  },
67
78
  // {
68
- // id: "StamenToner",
69
- // name: "Stamen Toner",
70
- // url: "https://stamen-tiles-{a-d}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
71
- // attributions:
72
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
73
- // subdomains: "abcd",
74
- // minZoom: 0,
75
- // maxZoom: 20,
76
- // ext: "png",
77
- // visible: false
78
- // },
79
- // {
80
- // id: "StamenWatercolor",
81
- // name: "Stamen Watercolor",
79
+ // id: "NEW MapBoxAerial",
80
+ // name: "NEW MapMapBoxAerialBox",
82
81
  // url:
83
- // "https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
82
+ // "https://api.mapbox.com/styles/v1/usace/standard-satellite/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
84
83
  // attributions:
85
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
84
+ // 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
86
85
  // subdomains: "abcd",
87
- // minZoom: 1,
88
- // maxZoom: 16,
89
- // ext: "png",
86
+ // accessToken: mapboxToken,
90
87
  // visible: false
91
88
  // },
89
+ {
90
+ id: "MapBoxOutdoor",
91
+ name: "MapBox Outdoor",
92
+ url:
93
+ "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
94
+ attributions:
95
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
96
+ subdomains: "abcd",
97
+ accessToken: mapboxToken,
98
+ visible: false
99
+ },
100
+ {
101
+ id: "NEW MapBoxOutdoor",
102
+ name: "NEW MapBox Outdoor",
103
+ url:
104
+ "https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
105
+ attributions:
106
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
107
+ subdomains: "abcd",
108
+ accessToken: mapboxToken,
109
+ visible: false
110
+ },
111
+ {
112
+ id: "NEW Monochrome Light",
113
+ name: "NEW Monochrome Light",
114
+ url:
115
+ "https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
116
+ attributions:
117
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
118
+ subdomains: "abcd",
119
+ accessToken: mapboxToken,
120
+ visible: false
121
+ },
122
+ {
123
+ id: "NEW Monochrome Dark",
124
+ name: "NEW Monochrome Dark",
125
+ url:
126
+ "https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
127
+ attributions:
128
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
129
+ subdomains: "abcd",
130
+ accessToken: mapboxToken,
131
+ visible: false
132
+ },
133
+ {
134
+ id: "NEW Navigation Dark",
135
+ name: "NEW Navigation Dark",
136
+ url:
137
+ "https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
138
+ attributions:
139
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
140
+ subdomains: "abcd",
141
+ accessToken: mapboxToken,
142
+ visible: false
143
+ },
144
+ {
145
+ id: "NEW Navigation Light",
146
+ name: "NEW Navigation Light",
147
+ url:
148
+ "https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
149
+ attributions:
150
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
151
+ subdomains: "abcd",
152
+ accessToken: mapboxToken,
153
+ visible: false
154
+ },
92
155
  {
93
156
  id: "EsriWorldStreetMap",
94
157
  name: "ESRI Streetmap",
@@ -164,7 +227,8 @@ const config = {
164
227
  subdomains: "abcd",
165
228
  maxZoom: 19,
166
229
  visible: false
167
- }
230
+ },
231
+
168
232
  ],
169
233
  datasetsDontUse: [
170
234
  {
@@ -58,7 +58,6 @@ export default {
58
58
  const targetValue = evt.target.value
59
59
  // let logData = store.selectChangeLogItems();
60
60
  let logData = store.selectAllChangeLogItems();
61
- // debugger
62
61
  if(targetValue.length > 2){
63
62
  const wkLogData = []
64
63
  logData.forEach((item) =>{
@@ -1,174 +1,174 @@
1
- import React from "react";
2
- import { connect } from "redux-bundler-react";
3
- import classnames from "classnames";
4
- import DatasetInfo from "./dataset-info-modal";
5
- import DatasetLegend from "./dataset-legend";
6
- import _ from "lodash";
7
-
8
- class TreeListItemDataset extends React.Component {
9
- constructor(props) {
10
- super(props);
11
- this.state = {
12
- showLegend: false,
13
- visible: props.item.visible,
14
- displayName: props.item.displayName,
15
- hoverText: props.item.hoverText,
16
- type: props.item.type,
17
- expanded: false,
18
- };
19
-
20
- this.toggleVisible = this.toggleVisible.bind(this);
21
- this.zoomTo = this.zoomTo.bind(this);
22
- this.openMetadata = this.openMetadata.bind(this);
23
- this.renderInfoButton = this.renderInfoButton.bind(this);
24
- }
25
-
26
- toggleVisible() {
27
- const { item, doLayerSetVisible } = this.props;
28
- doLayerSetVisible(item.uid, !item.visible);
29
- }
30
-
31
- toggleExpanded = () => {
32
- const { doOpenLayerDetails, item } = this.props;
33
- doOpenLayerDetails(item);
34
- };
35
-
36
- zoomTo() {
37
- const { item, doZoomToLayerExtent } = this.props;
38
- doZoomToLayerExtent(item.uid);
39
- }
40
-
41
- openMetadata(inline) {
42
- const { doModalOpen, item } = this.props;
43
- // this is a hack for the requirements of this particular app
44
- if (!inline) {
45
- doModalOpen({
46
- children: [DatasetInfo],
47
- options: { item: item },
48
- openedBy: "LayerTree",
49
- });
50
- } else {
51
- this.setState({
52
- showLegend: !this.state.showLegend,
53
- });
54
- }
55
- }
56
-
57
- renderInfoButton() {
58
- const { item } = this.props;
59
- if (!item.info || _.isEmpty(item.info)) return null;
60
- return (
61
- <span
62
- onClick={this.openMetadata}
63
- title="More Information"
64
- style={{ paddingLeft: "4px", cursor: "pointer" }}
65
- >
66
- <i className="mdi mdi-alert-circle-outline"></i>
67
- </span>
68
- );
69
- }
70
-
71
- renderLegend() {
72
- // this is a hack for this app
73
- const { showLegend } = this.state;
74
- const { item } = this.props;
75
- if (!showLegend) return null;
76
- return <DatasetLegend item={item} />;
77
- }
78
-
79
- render() {
80
- const { item, isOver, theme, mapZoom } = this.props;
81
- const { expanded } = this.state;
82
- const {
83
- displayName,
84
- type,
85
- identifyType,
86
- favorite,
87
- userDefaultLayer,
88
- hoverText,
89
- } = item;
90
-
91
- const hoverTextDisplay = hoverText ? hoverText : displayName;
92
-
93
- if (!item.passFilter) return null;
94
-
95
- const enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
96
- const itemTxtStyle = enabled ? { color: "#666" } : { color: "#bbb" };
97
-
98
- const itemClass = classnames({
99
- "cm-checkbox-inline": true,
100
- "cm-checkbox-ellipsis": true,
101
- "tree-list-item-hover": isOver,
102
- });
103
- const iconClass = classnames({
104
- mdi: true,
105
- "mdi-map-marker": type === "POINT",
106
- "mdi-vector-line": type === "LINE",
107
- "mdi-vector-polygon": type === "POLYGON",
108
- "mdi-grid": type === "RASTER",
109
- "mdi-google-maps": type === "SERVICE",
110
- });
111
- const expanderClass = classnames({
112
- [theme]: expanded,
113
- "layertree-layeritem-detailsicon": true,
114
- expanded: expanded,
115
- });
116
- return (
117
- <div className="layertree-layeritem">
118
- <span className="pull-right">
119
- <span onClick={this.toggleExpanded} className={expanderClass}>
120
- <i className="mdi mdi-dots-horizontal" title="More Info" />
121
- </span>
122
- </span>
123
- <label
124
- className={itemClass}
125
- title={`${hoverTextDisplay} ${!enabled ? "- zoom in to enable" : ""}`}
126
- style={itemTxtStyle}
127
- >
128
- <input
129
- disabled={!enabled}
130
- type="checkbox"
131
- checked={item.visible}
132
- value={item.visible}
133
- onChange={this.toggleVisible}
134
- />
135
- {identifyType ? (
136
- <sup
137
- style={{ fontSize: "10px" }}
138
- className="ms ms-information"
139
- title="Identify Tool Enabled for this Layer"
140
- ></sup>
141
- ) : null}
142
- {favorite ? (
143
- <i
144
- style={{ fontSize: "11px" }}
145
- className="mdi mdi-star"
146
- title="Layer saved to favorites list"
147
- />
148
- ) : null}
149
- {userDefaultLayer ? (
150
- <i
151
- style={{ fontSize: "11px" }}
152
- className="mdi mdi-account"
153
- title="Layer saved to user default layer list"
154
- />
155
- ) : null}
156
- {displayName}
157
- </label>
158
- {this.renderInfoButton()}
159
- {this.renderLegend()}
160
- </div>
161
- );
162
- }
163
- }
164
-
165
- export default connect(
166
- "selectTheme",
167
- "selectMapZoom",
168
- "doLayerSetVisible",
169
- "doTreeUpdate",
170
- "doZoomToLayerExtent",
171
- "doOpenLayerDetails",
172
- "doModalOpen",
173
- TreeListItemDataset
174
- );
1
+ import React from "react";
2
+ import { connect } from "redux-bundler-react";
3
+ import classnames from "classnames";
4
+ import DatasetInfo from "./dataset-info-modal";
5
+ import DatasetLegend from "./dataset-legend";
6
+ import _ from "lodash";
7
+
8
+ class TreeListItemDataset extends React.Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.state = {
12
+ showLegend: false,
13
+ visible: props.item.visible,
14
+ displayName: props.item.displayName,
15
+ hoverText: props.item.hoverText,
16
+ type: props.item.type,
17
+ expanded: false,
18
+ };
19
+
20
+ this.toggleVisible = this.toggleVisible.bind(this);
21
+ this.zoomTo = this.zoomTo.bind(this);
22
+ this.openMetadata = this.openMetadata.bind(this);
23
+ this.renderInfoButton = this.renderInfoButton.bind(this);
24
+ }
25
+
26
+ toggleVisible() {
27
+ const { item, doLayerSetVisible } = this.props;
28
+ doLayerSetVisible(item.uid, !item.visible);
29
+ }
30
+
31
+ toggleExpanded = () => {
32
+ const { doOpenLayerDetails, item } = this.props;
33
+ doOpenLayerDetails(item);
34
+ };
35
+
36
+ zoomTo() {
37
+ const { item, doZoomToLayerExtent } = this.props;
38
+ doZoomToLayerExtent(item.uid);
39
+ }
40
+
41
+ openMetadata(inline) {
42
+ const { doModalOpen, item } = this.props;
43
+ // this is a hack for the requirements of this particular app
44
+ if (!inline) {
45
+ doModalOpen({
46
+ children: [DatasetInfo],
47
+ options: { item: item },
48
+ openedBy: "LayerTree",
49
+ });
50
+ } else {
51
+ this.setState({
52
+ showLegend: !this.state.showLegend,
53
+ });
54
+ }
55
+ }
56
+
57
+ renderInfoButton() {
58
+ const { item } = this.props;
59
+ if (!item.info || _.isEmpty(item.info)) return null;
60
+ return (
61
+ <span
62
+ onClick={this.openMetadata}
63
+ title="More Information"
64
+ style={{ paddingLeft: "4px", cursor: "pointer" }}
65
+ >
66
+ <i className="mdi mdi-alert-circle-outline"></i>
67
+ </span>
68
+ );
69
+ }
70
+
71
+ renderLegend() {
72
+ // this is a hack for this app
73
+ const { showLegend } = this.state;
74
+ const { item } = this.props;
75
+ if (!showLegend) return null;
76
+ return <DatasetLegend item={item} />;
77
+ }
78
+
79
+ render() {
80
+ const { item, isOver, theme, mapZoom } = this.props;
81
+ const { expanded } = this.state;
82
+ const {
83
+ displayName,
84
+ type,
85
+ identifyType,
86
+ favorite,
87
+ userDefaultLayer,
88
+ hoverText,
89
+ } = item;
90
+
91
+ const hoverTextDisplay = hoverText ? hoverText : displayName;
92
+
93
+ if (!item.passFilter) return null;
94
+
95
+ const enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
96
+ const itemTxtStyle = enabled ? { color: "#666" } : { color: "#bbb" };
97
+
98
+ const itemClass = classnames({
99
+ "cm-checkbox-inline": true,
100
+ "cm-checkbox-ellipsis": true,
101
+ "tree-list-item-hover": isOver,
102
+ });
103
+ const iconClass = classnames({
104
+ mdi: true,
105
+ "mdi-map-marker": type === "POINT",
106
+ "mdi-vector-line": type === "LINE",
107
+ "mdi-vector-polygon": type === "POLYGON",
108
+ "mdi-grid": type === "RASTER",
109
+ "mdi-google-maps": type === "SERVICE",
110
+ });
111
+ const expanderClass = classnames({
112
+ [theme]: expanded,
113
+ "layertree-layeritem-detailsicon": true,
114
+ expanded: expanded,
115
+ });
116
+ return (
117
+ <div className="layertree-layeritem">
118
+ <span className="pull-right">
119
+ <span onClick={this.toggleExpanded} className={expanderClass}>
120
+ <i className="mdi mdi-dots-horizontal" title="More Info" />
121
+ </span>
122
+ </span>
123
+ <label
124
+ className={itemClass}
125
+ title={`${hoverTextDisplay} ${!enabled ? "- zoom in to enable" : ""}`}
126
+ style={itemTxtStyle}
127
+ >
128
+ <input
129
+ disabled={!enabled}
130
+ type="checkbox"
131
+ checked={item.visible}
132
+ value={item.visible}
133
+ onChange={this.toggleVisible}
134
+ />
135
+ {identifyType ? (
136
+ <sup
137
+ style={{ fontSize: "10px" }}
138
+ className="ms ms-information"
139
+ title="Identify Tool Enabled for this Layer"
140
+ ></sup>
141
+ ) : null}
142
+ {favorite ? (
143
+ <i
144
+ style={{ fontSize: "11px" }}
145
+ className="mdi mdi-star"
146
+ title="Layer saved to favorites list"
147
+ />
148
+ ) : null}
149
+ {userDefaultLayer ? (
150
+ <i
151
+ style={{ fontSize: "11px" }}
152
+ className="mdi mdi-account"
153
+ title="Layer saved to user default layer list"
154
+ />
155
+ ) : null}
156
+ {displayName}
157
+ </label>
158
+ {this.renderInfoButton()}
159
+ {this.renderLegend()}
160
+ </div>
161
+ );
162
+ }
163
+ }
164
+
165
+ export default connect(
166
+ "selectTheme",
167
+ "selectMapZoom",
168
+ "doLayerSetVisible",
169
+ "doTreeUpdate",
170
+ "doZoomToLayerExtent",
171
+ "doOpenLayerDetails",
172
+ "doModalOpen",
173
+ TreeListItemDataset
174
+ );