@corpsmap/corpsmap 3.1.1 → 3.1.4

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.
@@ -1,561 +1,561 @@
1
- const config = {
2
- map: {
3
- basemap: 0,
4
- centerX: -98.579,
5
- centerY: 39.828,
6
- centerZ: 7,
7
- altitude3d: 14771168,
8
- heading3d: 0,
9
- tilt3d: 0,
10
- minzoom: 0,
11
- maxzoom: 22,
12
- rotation: 0
13
- },
14
- dim: "2d",
15
- theme: "bg-blue-chambray",
16
- basemaps: [
17
- {
18
- id: "OpenStreetMap",
19
- name: "OpenStreetMap",
20
- oldUrl: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
21
- url: "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",
22
- maxZoom: 19,
23
- attributions:
24
- '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
25
- visible: true
26
- },
27
- {
28
- id: "MapBoxStreets",
29
- name: "MapBox Streets",
30
- oldUrl:
31
- "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
32
- url:
33
- "https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
34
- attributions:
35
- 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
36
- subdomains: "abcd",
37
- accessToken: "<your accessToken>",
38
- visible: false
39
- },
40
- {
41
- id: "MapBoxAerial",
42
- name: "MapBox Aerial",
43
- oldUrl:
44
- "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
45
- url:
46
- "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
47
- attributions:
48
- 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
49
- subdomains: "abcd",
50
- accessToken: "<your accessToken>",
51
- visible: false
52
- },
53
- {
54
- id: "MapBoxOutdoor",
55
- name: "MapBox Outdoor",
56
- oldUrl:
57
- "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
58
- url:
59
- "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
60
- attributions:
61
- 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
62
- subdomains: "abcd",
63
- accessToken: "<your accessToken>",
64
- visible: false
65
- },
66
- {
67
- id: "StamenToner",
68
- name: "Stamen Toner",
69
- oldUrl: "https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
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",
82
- oldUrl:
83
- "https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
84
- url:
85
- "https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
86
- attributions:
87
- '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>',
88
- subdomains: "abcd",
89
- minZoom: 1,
90
- maxZoom: 16,
91
- ext: "png",
92
- visible: false
93
- },
94
- {
95
- id: "EsriWorldStreetMap",
96
- name: "ESRI Streetmap",
97
- url:
98
- "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
99
- attributions:
100
- "Tiles &copy; Esri &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
101
- visible: false
102
- },
103
- {
104
- id: "EsriWorldImagery",
105
- name: "ESRI World Imagery",
106
- url:
107
- "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
108
- attributions:
109
- "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
110
- visible: false
111
- },
112
- {
113
- id: "EsriUSATopoMaps",
114
- name: "ESRI Topo Maps",
115
- url:
116
- "https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",
117
- attributions:
118
- "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
119
- visible: false
120
- },
121
- {
122
- id: "EsriWorldShadedRelief",
123
- name: "ESRI World Hillshade",
124
- url:
125
- "https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",
126
- attributions:
127
- "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
128
- visible: false
129
- },
130
- {
131
- id: "EsriWorldOcean",
132
- name: "ESRI World Ocean",
133
- url:
134
- "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",
135
- attributions:
136
- "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
137
- visible: false
138
- },
139
- {
140
- id: "USGSImageryTopo",
141
- name: "USGS Imagery/Topo",
142
- url:
143
- "https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",
144
- attributions:
145
- "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
146
- visible: false
147
- },
148
- {
149
- id: "CartoDBDarkMatter",
150
- name: "CartoDB Dark Matter",
151
- oldUrl:
152
- "https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
153
- url:
154
- "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
155
- attributions:
156
- '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',
157
- subdomains: "abcd",
158
- maxZoom: 19,
159
- visible: false
160
- },
161
- {
162
- id: "CartoDBPositron",
163
- name: "CartoDB Positron",
164
- oldUrl:
165
- "https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
166
- url:
167
- "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
168
- attributions:
169
- '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',
170
- subdomains: "abcd",
171
- maxZoom: 19,
172
- visible: false
173
- }
174
- ],
175
- datasetsDontUse: [
176
- {
177
- id: null,
178
- parentId: null,
179
- layerOrder: 1,
180
- mapId: 646,
181
- mapUuid: null,
182
- teamId: null,
183
- datasetId: null,
184
- teamDatasetId: null,
185
- serviceType: "EsriFeatureService",
186
- tiled: 0,
187
- displayName: "Foundational Project Area",
188
- description: "",
189
- url:
190
- "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",
191
- grids: null,
192
- layerList: "1",
193
- attribution: null,
194
- geometryType: "POINT",
195
- minzoom: 1,
196
- maxzoom: 22,
197
- abstract: null,
198
- purpose: null,
199
- status: null,
200
- keywords: null,
201
- localTable: null,
202
- metadataUrl: null,
203
- minX: -177.47,
204
- maxX: -64.71000000000001,
205
- minY: 13.43,
206
- maxY: 72.55,
207
- opacity: 1,
208
- useMapfile: 1,
209
- queryTemplate: "",
210
- hoverTemplate: "",
211
- queryable: 1,
212
- visible: 0,
213
- collapsed: 1,
214
- idCol: "objectid",
215
- shapeCol: "SHAPE",
216
- allowEdit: 0,
217
- allowExport: 1,
218
- createdBy: "1380992694",
219
- createDate: "2017-12-12T13:15:12.000Z",
220
- cacheTiles: 0,
221
- labelDefault: 0,
222
- labelEnabled: 0,
223
- deep: 2,
224
- path: "depricated",
225
- styleFn: `(
226
- function(f){
227
- const div = f.get('DIV_SYM');
228
- const colors = {
229
- 'MVD':'#949CA3',
230
- 'NAD':'#334762',
231
- 'NWD':'#B39A67',
232
- 'POD':'#D8AE46',
233
- 'SAD':'#B24C2E',
234
- 'SPD':'#B15142',
235
- 'SWD':'#BB742B',
236
- 'LRD':'#257F6A'
237
- }
238
- const style = new window.olStyle.Style({
239
- fill: new window.olStyle.Fill({
240
- color: colors[div]
241
- }),
242
- stroke: new window.olStyle.Stroke({
243
- color: '#362A2C',
244
- width: 0.4
245
- })
246
- })
247
- return style;
248
- }
249
- )`
250
- },
251
- {
252
- id: null,
253
- parentId: null,
254
- layerOrder: 1,
255
- mapId: 646,
256
- mapUuid: null,
257
- teamId: null,
258
- datasetId: null,
259
- teamDatasetId: null,
260
- serviceType: "EsriFeatureService",
261
- tiled: 0,
262
- displayName: "Divisions",
263
- description: "",
264
- url:
265
- "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",
266
- grids: null,
267
- layerList: "0",
268
- attribution: null,
269
- geometryType: "POINT",
270
- minzoom: 1,
271
- maxzoom: 22,
272
- abstract: null,
273
- purpose: null,
274
- status: null,
275
- keywords: null,
276
- localTable: null,
277
- metadataUrl: null,
278
- minX: -177.47,
279
- maxX: -64.71000000000001,
280
- minY: 13.43,
281
- maxY: 72.55,
282
- opacity: 1,
283
- useMapfile: 1,
284
- queryTemplate: "",
285
- hoverTemplate: "",
286
- queryable: 1,
287
- visible: 0,
288
- collapsed: 1,
289
- idCol: "objectid",
290
- shapeCol: "SHAPE",
291
- allowEdit: 0,
292
- allowExport: 1,
293
- createdBy: "1380992694",
294
- createDate: "2017-12-12T13:15:12.000Z",
295
- cacheTiles: 0,
296
- labelDefault: 0,
297
- labelEnabled: 0,
298
- deep: 2,
299
- path: "depricated",
300
- styleFn: `(
301
- function(f){
302
- const div = f.get('DIV_SYM');
303
- const colors = {
304
- 'MVD':'#949CA3',
305
- 'NAD':'#334762',
306
- 'NWD':'#B39A67',
307
- 'POD':'#D8AE46',
308
- 'SAD':'#B24C2E',
309
- 'SPD':'#B15142',
310
- 'SWD':'#BB742B',
311
- 'LRD':'#257F6A'
312
- }
313
- const style = new window.olStyle.Style({
314
- fill: new window.olStyle.Fill({
315
- color: colors[div]
316
- }),
317
- stroke: new window.olStyle.Stroke({
318
- color: '#362A2C',
319
- width: 0.4
320
- })
321
- })
322
- return style;
323
- }
324
- )`
325
- },
326
- {
327
- id: null,
328
- parentId: null,
329
- layerOrder: 1,
330
- mapId: 646,
331
- mapUuid: null,
332
- teamId: null,
333
- datasetId: null,
334
- teamDatasetId: null,
335
- serviceType: "RemoteVector",
336
- tiled: 0,
337
- displayName: "Dam Status",
338
- description: "",
339
- url:
340
- "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",
341
- grids: null,
342
- layerList: "ahpsfcst_minor",
343
- attribution: null,
344
- geometryType: "POINT",
345
- minzoom: 1,
346
- maxzoom: 22,
347
- abstract: null,
348
- purpose: null,
349
- status: null,
350
- keywords: null,
351
- localTable: null,
352
- metadataUrl: null,
353
- minX: -177.47,
354
- maxX: -64.71000000000001,
355
- minY: 13.43,
356
- maxY: 72.55,
357
- opacity: 1,
358
- useMapfile: 1,
359
- queryTemplate: "",
360
- hoverTemplate: "",
361
- queryable: 1,
362
- visible: 0,
363
- collapsed: 1,
364
- idCol: "objectid",
365
- shapeCol: "SHAPE",
366
- allowEdit: 0,
367
- allowExport: 1,
368
- createdBy: "1380992694",
369
- createDate: "2017-12-12T13:15:12.000Z",
370
- cacheTiles: 0,
371
- labelDefault: 0,
372
- labelEnabled: 0,
373
- deep: 2,
374
- path: "depricated",
375
- styleFn: `(
376
- function(f){
377
- const b = f.get('briefit');
378
- const t = f.get('systemname');
379
- const h = b === 'Y';
380
- const labelStyle = new window.olStyle.Style({
381
- text: new window.olStyle.Text({
382
- text: h ? t : null,
383
- font: 'bold 16px sans-serif',
384
- textAlign:'left',
385
- offsetX:3,
386
- offsetY:-3,
387
- textAlign: 'left',
388
- textBaseline: 'bottom',
389
- overflow: true,
390
- stroke: new window.olStyle.Stroke({
391
- color:'#ABB1A5',
392
- width: 2
393
- }),
394
- fill: new window.olStyle.Fill({
395
- color: '#0E0D1E'
396
- })
397
- })
398
- })
399
- const pointStyle = new window.olStyle.Style({
400
- allowOverlap: true,
401
- image: new window.olStyle.Circle({
402
- radius: h ? 9 : 6,
403
- stroke: new window.olStyle.Stroke({
404
- color: '#ABB1A5',
405
- width: 2
406
- }),
407
- fill: new window.olStyle.Fill({
408
- color: h ? '#773621' : '#C14F11'
409
- })
410
- })
411
- });
412
- return [pointStyle, labelStyle];
413
- }
414
- )`
415
- },
416
- {
417
- id: null,
418
- parentId: null,
419
- layerOrder: 1,
420
- mapId: 646,
421
- mapUuid: null,
422
- teamId: null,
423
- datasetId: null,
424
- teamDatasetId: null,
425
- serviceType: "RemoteVector",
426
- tiled: 0,
427
- displayName: "Levee Data",
428
- description: "Real time forecast values from NOAA. Updated hourly",
429
- url:
430
- "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",
431
- grids: null,
432
- layerList: "ahpsfcst_minor",
433
- attribution: null,
434
- geometryType: "POINT",
435
- minzoom: 1,
436
- maxzoom: 22,
437
- abstract: null,
438
- purpose: null,
439
- status: null,
440
- keywords: null,
441
- localTable: null,
442
- metadataUrl: null,
443
- minX: -177.47,
444
- maxX: -64.71000000000001,
445
- minY: 13.43,
446
- maxY: 72.55,
447
- opacity: 1,
448
- useMapfile: 1,
449
- queryTemplate: "",
450
- hoverTemplate: "",
451
- queryable: 1,
452
- visible: 0,
453
- collapsed: 1,
454
- idCol: "objectid",
455
- shapeCol: "SHAPE",
456
- allowEdit: 0,
457
- allowExport: 1,
458
- createdBy: "1380992694",
459
- createDate: "2017-12-12T13:15:12.000Z",
460
- cacheTiles: 0,
461
- labelDefault: 0,
462
- labelEnabled: 0,
463
- deep: 2,
464
- path: "depricated",
465
- styleFn: `(
466
- function(f){
467
- const b = f.get('briefit');
468
- const t = f.get('systemname');
469
- const h = b === 'Y';
470
- const labelStyle = new window.olStyle.Style({
471
- text: new window.olStyle.Text({
472
- text: h ? t : null,
473
- font: 'bold 16px sans-serif',
474
- textAlign:'left',
475
- offsetX:3,
476
- offsetY:-3,
477
- textAlign: 'left',
478
- textBaseline: 'bottom',
479
- overflow: true,
480
- stroke: new window.olStyle.Stroke({
481
- color:'#DAD9C4',
482
- width: 2
483
- }),
484
- fill: new window.olStyle.Fill({
485
- color: '#33302A'
486
- })
487
- })
488
- })
489
- const pointStyle = new window.olStyle.Style({
490
- allowOverlap: true,
491
- image: new window.olStyle.Circle({
492
- radius: h ? 9 : 6,
493
- stroke: new window.olStyle.Stroke({
494
- color: '#DAD9C4',
495
- width: 2
496
- }),
497
- fill: new window.olStyle.Fill({
498
- color: h ? '#B85B2B' : '#DEA500'
499
- })
500
- })
501
- });
502
- return [pointStyle, labelStyle];
503
- }
504
- )`
505
- },
506
- {
507
- id: 13597,
508
- parentId: null,
509
- layerOrder: 2,
510
- mapId: 646,
511
- mapUuid: null,
512
- teamId: 39,
513
- datasetId: 716,
514
- teamDatasetId: 713,
515
- serviceType: "XYZ",
516
- tiled: 1,
517
- displayName: "Minor Flooding",
518
- description: "Real time forecast values from NOAA. Updated hourly",
519
- url:
520
- "https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",
521
- grids: null,
522
- layerList: "ahpsfcst_minor",
523
- attribution: null,
524
- geometryType: "POINT",
525
- minzoom: 1,
526
- maxzoom: 22,
527
- abstract: null,
528
- purpose: null,
529
- status: null,
530
- keywords: null,
531
- localTable: "NOAA.NATIONAL_FCST_VW_MIN",
532
- metadataUrl: null,
533
- minX: -177.47,
534
- maxX: -64.71000000000001,
535
- minY: 13.43,
536
- maxY: 72.55,
537
- opacity: 1,
538
- useMapfile: 1,
539
- queryTemplate:
540
- 'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
541
- hoverTemplate:
542
- 'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
543
- queryable: 1,
544
- visible: 0,
545
- collapsed: 1,
546
- idCol: "objectid",
547
- shapeCol: "SHAPE",
548
- allowEdit: 0,
549
- allowExport: 1,
550
- createdBy: "1380992694",
551
- createDate: "2017-12-12T13:15:12.000Z",
552
- cacheTiles: 0,
553
- labelDefault: 0,
554
- labelEnabled: 0,
555
- deep: 2,
556
- path: "depricated"
557
- }
558
- ]
559
- };
560
-
561
- export default config;
1
+ const config = {
2
+ map: {
3
+ basemap: 0,
4
+ centerX: -98.579,
5
+ centerY: 39.828,
6
+ centerZ: 7,
7
+ altitude3d: 14771168,
8
+ heading3d: 0,
9
+ tilt3d: 0,
10
+ minzoom: 0,
11
+ maxzoom: 22,
12
+ rotation: 0,
13
+ },
14
+ dim: "2d",
15
+ theme: "bg-blue-chambray",
16
+ basemaps: [
17
+ {
18
+ id: "OpenStreetMap",
19
+ name: "OpenStreetMap",
20
+ oldUrl: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
21
+ url: "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",
22
+ maxZoom: 19,
23
+ attributions:
24
+ '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
25
+ visible: true
26
+ },
27
+ {
28
+ id: "MapBoxStreets",
29
+ name: "MapBox Streets",
30
+ oldUrl:
31
+ "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
32
+ url:
33
+ "https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
34
+ attributions:
35
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
36
+ subdomains: "abcd",
37
+ accessToken: "<your accessToken>",
38
+ visible: false
39
+ },
40
+ {
41
+ id: "MapBoxAerial",
42
+ name: "MapBox Aerial",
43
+ oldUrl:
44
+ "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
45
+ url:
46
+ "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
47
+ attributions:
48
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
49
+ subdomains: "abcd",
50
+ accessToken: "<your accessToken>",
51
+ visible: false
52
+ },
53
+ {
54
+ id: "MapBoxOutdoor",
55
+ name: "MapBox Outdoor",
56
+ oldUrl:
57
+ "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
58
+ url:
59
+ "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidXNhY2UiLCJhIjoiY2o1MDZscms4MDI4MjMycG1wa3puc212MCJ9.CW7edZMtlx5vFLNF5P-zTA",
60
+ attributions:
61
+ 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
62
+ subdomains: "abcd",
63
+ accessToken: "<your accessToken>",
64
+ visible: false
65
+ },
66
+ {
67
+ id: "StamenToner",
68
+ name: "Stamen Toner",
69
+ oldUrl: "https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
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",
82
+ oldUrl:
83
+ "https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
84
+ url:
85
+ "https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
86
+ attributions:
87
+ '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>',
88
+ subdomains: "abcd",
89
+ minZoom: 1,
90
+ maxZoom: 16,
91
+ ext: "png",
92
+ visible: false
93
+ },
94
+ {
95
+ id: "EsriWorldStreetMap",
96
+ name: "ESRI Streetmap",
97
+ url:
98
+ "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
99
+ attributions:
100
+ "Tiles &copy; Esri &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
101
+ visible: false
102
+ },
103
+ {
104
+ id: "EsriWorldImagery",
105
+ name: "ESRI World Imagery",
106
+ url:
107
+ "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
108
+ attributions:
109
+ "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
110
+ visible: false
111
+ },
112
+ {
113
+ id: "EsriUSATopoMaps",
114
+ name: "ESRI Topo Maps",
115
+ url:
116
+ "https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",
117
+ attributions:
118
+ "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
119
+ visible: false
120
+ },
121
+ {
122
+ id: "EsriWorldShadedRelief",
123
+ name: "ESRI World Hillshade",
124
+ url:
125
+ "https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",
126
+ attributions:
127
+ "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
128
+ visible: false
129
+ },
130
+ {
131
+ id: "EsriWorldOcean",
132
+ name: "ESRI World Ocean",
133
+ url:
134
+ "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",
135
+ attributions:
136
+ "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
137
+ visible: false
138
+ },
139
+ {
140
+ id: "USGSImageryTopo",
141
+ name: "USGS Imagery/Topo",
142
+ url:
143
+ "https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",
144
+ attributions:
145
+ "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
146
+ visible: false
147
+ },
148
+ {
149
+ id: "CartoDBDarkMatter",
150
+ name: "CartoDB Dark Matter",
151
+ oldUrl:
152
+ "https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
153
+ url:
154
+ "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",
155
+ attributions:
156
+ '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',
157
+ subdomains: "abcd",
158
+ maxZoom: 19,
159
+ visible: false
160
+ },
161
+ {
162
+ id: "CartoDBPositron",
163
+ name: "CartoDB Positron",
164
+ oldUrl:
165
+ "https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
166
+ url:
167
+ "https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
168
+ attributions:
169
+ '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',
170
+ subdomains: "abcd",
171
+ maxZoom: 19,
172
+ visible: false
173
+ }
174
+ ],
175
+ datasetsDontUse: [
176
+ {
177
+ id: null,
178
+ parentId: null,
179
+ layerOrder: 1,
180
+ mapId: 646,
181
+ mapUuid: null,
182
+ teamId: null,
183
+ datasetId: null,
184
+ teamDatasetId: null,
185
+ serviceType: "EsriFeatureService",
186
+ tiled: 0,
187
+ displayName: "Foundational Project Area",
188
+ description: "",
189
+ url:
190
+ "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",
191
+ grids: null,
192
+ layerList: "1",
193
+ attribution: null,
194
+ geometryType: "POINT",
195
+ minzoom: 1,
196
+ maxzoom: 22,
197
+ abstract: null,
198
+ purpose: null,
199
+ status: null,
200
+ keywords: null,
201
+ localTable: null,
202
+ metadataUrl: null,
203
+ minX: -177.47,
204
+ maxX: -64.71000000000001,
205
+ minY: 13.43,
206
+ maxY: 72.55,
207
+ opacity: 1,
208
+ useMapfile: 1,
209
+ queryTemplate: "",
210
+ hoverTemplate: "",
211
+ queryable: 1,
212
+ visible: 0,
213
+ collapsed: 1,
214
+ idCol: "objectid",
215
+ shapeCol: "SHAPE",
216
+ allowEdit: 0,
217
+ allowExport: 1,
218
+ createdBy: "1380992694",
219
+ createDate: "2017-12-12T13:15:12.000Z",
220
+ cacheTiles: 0,
221
+ labelDefault: 0,
222
+ labelEnabled: 0,
223
+ deep: 2,
224
+ path: "depricated",
225
+ styleFn: `(
226
+ function(f){
227
+ const div = f.get('DIV_SYM');
228
+ const colors = {
229
+ 'MVD':'#949CA3',
230
+ 'NAD':'#334762',
231
+ 'NWD':'#B39A67',
232
+ 'POD':'#D8AE46',
233
+ 'SAD':'#B24C2E',
234
+ 'SPD':'#B15142',
235
+ 'SWD':'#BB742B',
236
+ 'LRD':'#257F6A'
237
+ }
238
+ const style = new window.olStyle.Style({
239
+ fill: new window.olStyle.Fill({
240
+ color: colors[div]
241
+ }),
242
+ stroke: new window.olStyle.Stroke({
243
+ color: '#362A2C',
244
+ width: 0.4
245
+ })
246
+ })
247
+ return style;
248
+ }
249
+ )`
250
+ },
251
+ {
252
+ id: null,
253
+ parentId: null,
254
+ layerOrder: 1,
255
+ mapId: 646,
256
+ mapUuid: null,
257
+ teamId: null,
258
+ datasetId: null,
259
+ teamDatasetId: null,
260
+ serviceType: "EsriFeatureService",
261
+ tiled: 0,
262
+ displayName: "Divisions",
263
+ description: "",
264
+ url:
265
+ "https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",
266
+ grids: null,
267
+ layerList: "0",
268
+ attribution: null,
269
+ geometryType: "POINT",
270
+ minzoom: 1,
271
+ maxzoom: 22,
272
+ abstract: null,
273
+ purpose: null,
274
+ status: null,
275
+ keywords: null,
276
+ localTable: null,
277
+ metadataUrl: null,
278
+ minX: -177.47,
279
+ maxX: -64.71000000000001,
280
+ minY: 13.43,
281
+ maxY: 72.55,
282
+ opacity: 1,
283
+ useMapfile: 1,
284
+ queryTemplate: "",
285
+ hoverTemplate: "",
286
+ queryable: 1,
287
+ visible: 0,
288
+ collapsed: 1,
289
+ idCol: "objectid",
290
+ shapeCol: "SHAPE",
291
+ allowEdit: 0,
292
+ allowExport: 1,
293
+ createdBy: "1380992694",
294
+ createDate: "2017-12-12T13:15:12.000Z",
295
+ cacheTiles: 0,
296
+ labelDefault: 0,
297
+ labelEnabled: 0,
298
+ deep: 2,
299
+ path: "depricated",
300
+ styleFn: `(
301
+ function(f){
302
+ const div = f.get('DIV_SYM');
303
+ const colors = {
304
+ 'MVD':'#949CA3',
305
+ 'NAD':'#334762',
306
+ 'NWD':'#B39A67',
307
+ 'POD':'#D8AE46',
308
+ 'SAD':'#B24C2E',
309
+ 'SPD':'#B15142',
310
+ 'SWD':'#BB742B',
311
+ 'LRD':'#257F6A'
312
+ }
313
+ const style = new window.olStyle.Style({
314
+ fill: new window.olStyle.Fill({
315
+ color: colors[div]
316
+ }),
317
+ stroke: new window.olStyle.Stroke({
318
+ color: '#362A2C',
319
+ width: 0.4
320
+ })
321
+ })
322
+ return style;
323
+ }
324
+ )`
325
+ },
326
+ {
327
+ id: null,
328
+ parentId: null,
329
+ layerOrder: 1,
330
+ mapId: 646,
331
+ mapUuid: null,
332
+ teamId: null,
333
+ datasetId: null,
334
+ teamDatasetId: null,
335
+ serviceType: "RemoteVector",
336
+ tiled: 0,
337
+ displayName: "Dam Status",
338
+ description: "",
339
+ url:
340
+ "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",
341
+ grids: null,
342
+ layerList: "ahpsfcst_minor",
343
+ attribution: null,
344
+ geometryType: "POINT",
345
+ minzoom: 1,
346
+ maxzoom: 22,
347
+ abstract: null,
348
+ purpose: null,
349
+ status: null,
350
+ keywords: null,
351
+ localTable: null,
352
+ metadataUrl: null,
353
+ minX: -177.47,
354
+ maxX: -64.71000000000001,
355
+ minY: 13.43,
356
+ maxY: 72.55,
357
+ opacity: 1,
358
+ useMapfile: 1,
359
+ queryTemplate: "",
360
+ hoverTemplate: "",
361
+ queryable: 1,
362
+ visible: 0,
363
+ collapsed: 1,
364
+ idCol: "objectid",
365
+ shapeCol: "SHAPE",
366
+ allowEdit: 0,
367
+ allowExport: 1,
368
+ createdBy: "1380992694",
369
+ createDate: "2017-12-12T13:15:12.000Z",
370
+ cacheTiles: 0,
371
+ labelDefault: 0,
372
+ labelEnabled: 0,
373
+ deep: 2,
374
+ path: "depricated",
375
+ styleFn: `(
376
+ function(f){
377
+ const b = f.get('briefit');
378
+ const t = f.get('systemname');
379
+ const h = b === 'Y';
380
+ const labelStyle = new window.olStyle.Style({
381
+ text: new window.olStyle.Text({
382
+ text: h ? t : null,
383
+ font: 'bold 16px sans-serif',
384
+ textAlign:'left',
385
+ offsetX:3,
386
+ offsetY:-3,
387
+ textAlign: 'left',
388
+ textBaseline: 'bottom',
389
+ overflow: true,
390
+ stroke: new window.olStyle.Stroke({
391
+ color:'#ABB1A5',
392
+ width: 2
393
+ }),
394
+ fill: new window.olStyle.Fill({
395
+ color: '#0E0D1E'
396
+ })
397
+ })
398
+ })
399
+ const pointStyle = new window.olStyle.Style({
400
+ allowOverlap: true,
401
+ image: new window.olStyle.Circle({
402
+ radius: h ? 9 : 6,
403
+ stroke: new window.olStyle.Stroke({
404
+ color: '#ABB1A5',
405
+ width: 2
406
+ }),
407
+ fill: new window.olStyle.Fill({
408
+ color: h ? '#773621' : '#C14F11'
409
+ })
410
+ })
411
+ });
412
+ return [pointStyle, labelStyle];
413
+ }
414
+ )`
415
+ },
416
+ {
417
+ id: null,
418
+ parentId: null,
419
+ layerOrder: 1,
420
+ mapId: 646,
421
+ mapUuid: null,
422
+ teamId: null,
423
+ datasetId: null,
424
+ teamDatasetId: null,
425
+ serviceType: "RemoteVector",
426
+ tiled: 0,
427
+ displayName: "Levee Data",
428
+ description: "Real time forecast values from NOAA. Updated hourly",
429
+ url:
430
+ "https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",
431
+ grids: null,
432
+ layerList: "ahpsfcst_minor",
433
+ attribution: null,
434
+ geometryType: "POINT",
435
+ minzoom: 1,
436
+ maxzoom: 22,
437
+ abstract: null,
438
+ purpose: null,
439
+ status: null,
440
+ keywords: null,
441
+ localTable: null,
442
+ metadataUrl: null,
443
+ minX: -177.47,
444
+ maxX: -64.71000000000001,
445
+ minY: 13.43,
446
+ maxY: 72.55,
447
+ opacity: 1,
448
+ useMapfile: 1,
449
+ queryTemplate: "",
450
+ hoverTemplate: "",
451
+ queryable: 1,
452
+ visible: 0,
453
+ collapsed: 1,
454
+ idCol: "objectid",
455
+ shapeCol: "SHAPE",
456
+ allowEdit: 0,
457
+ allowExport: 1,
458
+ createdBy: "1380992694",
459
+ createDate: "2017-12-12T13:15:12.000Z",
460
+ cacheTiles: 0,
461
+ labelDefault: 0,
462
+ labelEnabled: 0,
463
+ deep: 2,
464
+ path: "depricated",
465
+ styleFn: `(
466
+ function(f){
467
+ const b = f.get('briefit');
468
+ const t = f.get('systemname');
469
+ const h = b === 'Y';
470
+ const labelStyle = new window.olStyle.Style({
471
+ text: new window.olStyle.Text({
472
+ text: h ? t : null,
473
+ font: 'bold 16px sans-serif',
474
+ textAlign:'left',
475
+ offsetX:3,
476
+ offsetY:-3,
477
+ textAlign: 'left',
478
+ textBaseline: 'bottom',
479
+ overflow: true,
480
+ stroke: new window.olStyle.Stroke({
481
+ color:'#DAD9C4',
482
+ width: 2
483
+ }),
484
+ fill: new window.olStyle.Fill({
485
+ color: '#33302A'
486
+ })
487
+ })
488
+ })
489
+ const pointStyle = new window.olStyle.Style({
490
+ allowOverlap: true,
491
+ image: new window.olStyle.Circle({
492
+ radius: h ? 9 : 6,
493
+ stroke: new window.olStyle.Stroke({
494
+ color: '#DAD9C4',
495
+ width: 2
496
+ }),
497
+ fill: new window.olStyle.Fill({
498
+ color: h ? '#B85B2B' : '#DEA500'
499
+ })
500
+ })
501
+ });
502
+ return [pointStyle, labelStyle];
503
+ }
504
+ )`
505
+ },
506
+ {
507
+ id: 13597,
508
+ parentId: null,
509
+ layerOrder: 2,
510
+ mapId: 646,
511
+ mapUuid: null,
512
+ teamId: 39,
513
+ datasetId: 716,
514
+ teamDatasetId: 713,
515
+ serviceType: "XYZ",
516
+ tiled: 1,
517
+ displayName: "Minor Flooding",
518
+ description: "Real time forecast values from NOAA. Updated hourly",
519
+ url:
520
+ "https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",
521
+ grids: null,
522
+ layerList: "ahpsfcst_minor",
523
+ attribution: null,
524
+ geometryType: "POINT",
525
+ minzoom: 1,
526
+ maxzoom: 22,
527
+ abstract: null,
528
+ purpose: null,
529
+ status: null,
530
+ keywords: null,
531
+ localTable: "NOAA.NATIONAL_FCST_VW_MIN",
532
+ metadataUrl: null,
533
+ minX: -177.47,
534
+ maxX: -64.71000000000001,
535
+ minY: 13.43,
536
+ maxY: 72.55,
537
+ opacity: 1,
538
+ useMapfile: 1,
539
+ queryTemplate:
540
+ 'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
541
+ hoverTemplate:
542
+ 'Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,\'mm/dd/yyyy hh:mi: am\') "Forecast Time", forecast||\' \'||units "Forecast", \'<a href="\'||url||\'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/\'||lower(gaugelid)||\'_hg.png" width="300px"/></a>\' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"',
543
+ queryable: 1,
544
+ visible: 0,
545
+ collapsed: 1,
546
+ idCol: "objectid",
547
+ shapeCol: "SHAPE",
548
+ allowEdit: 0,
549
+ allowExport: 1,
550
+ createdBy: "1380992694",
551
+ createDate: "2017-12-12T13:15:12.000Z",
552
+ cacheTiles: 0,
553
+ labelDefault: 0,
554
+ labelEnabled: 0,
555
+ deep: 2,
556
+ path: "depricated"
557
+ }
558
+ ]
559
+ };
560
+
561
+ export default config;