forked from georchestra/datadir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGEOR_custom.js
611 lines (550 loc) · 23.1 KB
/
GEOR_custom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
/**
* Sample geOrchestra viewer config file
*
* Instructions: copy this buffer into GEOR_custom.js,
* uncomment lines you wish to modify and
* modify the corresponding values to suit your needs.
*/
Ext.namespace("GEOR");
GEOR.custom = {
/**
* Constant: DEFAULT_WMC
* The relative path to the default context.
*
* Must be one of those, either copied to the datadir
* or contained in the webapp.
*
* Defaults to the first one got by mapfishapp's ContextController.java,
* probably something like "context/default.wmc"
*/
DEFAULT_WMC: "context/default.wmc",
/**
* Constant: GEOSERVER_WFS_URL
* The URL to GeoServer WFS.
* This is required if and only if the "referentials" module is activated.
* Defaults to /geoserver/wfs
*/
GEOSERVER_WFS_URL: "https://geobretagne.fr/geoserver/wfs",
/**
* Constant: GEOSERVER_WMS_URL
* The URL to the GeoServer WMS.
* This is required if and only if OSM_AS_OVMAP is set to false.
* Defaults to /geoserver/wms
*/
//GEOSERVER_WMS_URL: "/geoserver/wms",
/**
* Constant: GEONETWORK_BASE_URL
* The base URL to the local GeoNetwork server.
* Required for CSW Browser module.
* Defaults to "/geonetwork"
*/
GEONETWORK_BASE_URL: "https://geobretagne.fr/geonetwork",
/**
* Constant: METADATA_VIEW_BASE_URL
* The base URL to the "view metadata" service
* Defaults to "/geonetwork/?uuid="
*/
METADATA_VIEW_BASE_URL: "/geonetwork/?uuid=",
/**
* Constant: CSW_GETDOMAIN_SORTING
* true to case insensitive sort (client side) the keywords
* got from a CSW getDomain request. false to disable
* client side sorting
* (which is preferable in case of too many keywords).
* Defaults to false
*/
//CSW_GETDOMAIN_SORTING: false,
/**
* Constant: THESAURUS_NAME
* Thesaurus name to display for the CSW GetDomain request.
* Defaults to 'mots clés'
*/
//THESAURUS_NAME: 'mots clés',
/**
* Constant: CATALOGS
* List of catalogs for freetext search
*/
CATALOGS: [
['/geonetwork/srv/fre/csw', 'le catalogue local'],
['https://geobretagne.fr/geonetwork/srv/fre/csw', 'le catalogue GeoBretagne'],
['https://www.pigma.org/geonetwork/srv/fre/csw', 'le catalogue PIGMA'],
['http://www.sandre.eaufrance.fr/atlas/srv/fre/csw', 'le catalogue du Sandre'],
['http://geocatalog.webservice-energy.org/geonetwork/srv/fre/csw', 'le catalogue de webservice-energy'],
['http://www.ifremer.fr/geonetwork/srv/fre/csw', "le catalogue de l'Ifremer"],
['https://www.geograndest.fr/geonetwork/srv/fre/csw', "le catalogue de GéoGrandEst"]
],
/**
* Constant: DEFAULT_CSW_URL
* CSW URL which should be used by default for freetext search
* Note: must be one of the URLs in the above CATALOGS config option
*/
DEFAULT_CSW_URL: '/geonetwork/srv/fre/csw',
/**
* Constant: MAX_CSW_RECORDS
* The maximum number of CSW records queried for catalog search
* Note: if you set this to a low value, you run the risk of not having
* enough results (even 0). On the contrary, setting a very high value
* might result in browser hanging (too much XML data to parse).
* Defaults to 20.
*/
//MAX_CSW_RECORDS: 20,
/**
* Constant: CSW_FILTER_PROPERTIES
* A list of properties queried on catalog search.
* Use ['AnyText'] to allow search on all metadata fields,
* or use a subset of ISO queryable properties to limit search
* on those properties.
* Defaults to ['Title','AlternateTitle','Abstract','Subject','OrganisationName']
*/
//CSW_FILTER_PROPERTIES: getCustomParameter("CSW_FILTER_PROPERTIES", [
//'Title', 'AlternateTitle', 'Abstract', 'Subject', 'OrganisationName'
//]),
/**
* Constant: CSW_FILTER_SPATIAL
* An optional extent in latlon to restrict metadata search on a specific extent (latlon)
* Defaults to [-180, -90, 180, 90] to cover the world.
* If the parameter is set to null, the filter uses the current map extent by default.
*/
//CSW_FILTER_SPATIAL: [-180,-90,180,90],
/**
* Constant: NO_THUMBNAIL_IMAGE_URL
* URL to a thumbnail image shown when none is provided by the CSW service
* Defaults to the provided one ('app/img/nopreview.png')
*/
//NO_THUMBNAIL_IMAGE_URL: 'app/img/nopreview.png',
/**
* Constant: ALLOW_LAYER_DOWNLOAD
* Boolean - If set to false, deactivate layer download via WFS.
* Defaults to true
*/
//ALLOW_LAYER_DOWNLOAD: true,
/**
* Constant: THESAURUS_SEARCH
* Whether to display the thesaurus tab or not in the layer finder.
* Defaults to true.
*/
//THESAURUS_SEARCH: true,
/**
* Constant: DEFAULT_THESAURUS_KEY
* Key (as the one in the response from /geonetwork/srv/fre/xml.thesaurus.getList)
* of the thesaurus to use as the default (selected) one.
*
*/
//DEFAULT_THESAURUS_KEY: 'external.theme.inspire-theme',
/**
* Constant: MAX_FEATURES
* The maximum number of vector features displayed.
* Defaults to 1000
*/
//MAX_FEATURES: 1000,
/**
* Constant: MAX_LENGTH
* The maximum number of chars in a XML response
* before triggering an alert.
* Defaults to 2 millions
*/
//MAX_LENGTH: 2048*1024,
/**
* Constant: OSM_AS_OVMAP
* Boolean: if true, use OSM mapnik as overview map baselayer
* instead of GEOR.config.OVMAP_LAYER_NAME.
* Defaults to true
*/
//OSM_AS_OVMAP: true,
/**
* Constant: OVMAP_LAYER_NAME
* The name of the base layer which will be displayed in the overview map.
* This is required if and only if OSM_AS_OVMAP is set to false.
* This layer must be served by the server GEOSERVER_WMS_URL as image/png
* Defaults to "geor_loc:DEPARTEMENTS"
*/
//OVMAP_LAYER_NAME: "geor_loc:DEPARTEMENTS",
/**
* Constant: WMSC2WMS
* Hash allowing correspondance between WMS-C server URLs and WMS server URLs for print
* This assumes that layers share the same name on both servers
* Eventually, Administrator can setup a mirror WMS server configured to consume WMS-C and serve them as WMS ...
*
* Example usage:
*
* "wmsc_url": "wms_url",
*
* For a WMSC with no WMS counterpart,
* referencing the wmsc_url here allows the user
* to be warned that this layer will not be printed:
*
* "wmsc_url": undefined,
*/
//WMSC2WMS: {},
/**
* Constant: MAP_DOTS_PER_INCH
* {Float} Sets the resolution used for scale computation.
* Defaults to 1000 / 39.37 / 0.28
* see https://github.com/georchestra/georchestra/issues/736
*/
//MAP_DOTS_PER_INCH: 1000 / 39.37 / 0.28,
/**
* Constant: DEACCENTUATE_REFERENTIALS_QUERYSTRING
* {Boolean} Whether to deaccentuate the referentials widget query string
* Defaults to true
*/
//DEACCENTUATE_REFERENTIALS_QUERYSTRING: true,
/**
* Constant: NS_LOC
* {String} The referentials layers' namespace alias as defined in
* the GeoServer configuration.
* Defaults to "geor_loc"
*/
//NS_LOC: "geor_loc",
/**
* Constant: GN4_INDEX_KEYWORD_FIELD
* {String} the field in GeoNetwork4 index which stores the keywords.
* Defaults to "tag.default"
*/
//GN4_INDEX_KEYWORD_FIELD: "tag.default",
/**
* Constant: MAP_SCALES
* {Array} The map's scales.
* Defaults to the Well-known scale set GoogleMapsCompatible (see WMTS spec appendix E)
*
MAP_SCALES: [
266.5911979812228585,
533.1823959624461134,
1066.3647919248918304,
2132.7295838497840572,
4265.4591676995681144,
8530.9183353991362289,
17061.8366707982724577,
34123.6733415965449154,
68247.3466831930771477,
136494.6933663861796617,
272989.3867327723085907,
545978.7734655447186469,
1091957.5469310886252288,
2183915.0938621788745877,
4367830.1877243577491754,
8735660.3754487154983508,
17471320.7508974309967016,
34942641.5017948619934032,
69885283.0035897239868063,
139770566.0071793960087234,
279541132.0143588959472254,
559082264.0287178958533332
],*/
/**
* Constant: MAP_SRS
* {String} The default map SRS code.
* Defaults to EPSG:3857
*/
//MAP_SRS: "EPSG:3857",
/**
* Constant: MAP_XMIN aka "left"
* {Float} The max extent xmin in MAP_SRS coordinates.
* Defaults to -20037508.34
*/
//MAP_XMIN: -20037508.34,
/**
* Constant: MAP_YMIN aka "bottom"
* {Float} The max extent ymin in MAP_SRS coordinates.
* Defaults to -20037508.34
*/
//MAP_YMIN: -20037508.34,
/**
* Constant: MAP_XMAX aka "right"
* {Float} The max extent xmax in MAP_SRS coordinates.
* Defaults to 20037508.34
*/
//MAP_XMAX: 20037508.34,
/**
* Constant: MAP_YSMAX aka "top"
* {Float} The max extent ymax in MAP_SRS coordinates
* Defaults to 20037508.34
*/
//MAP_YMAX: 20037508.34,
/**
* Constant: POINTER_POSITION_SRS_LIST
* {Array} The cursor position will be displayed using these SRS.
* Defaults to [["EPSG:4326", "WGS 84"],["EPSG:3857", "Spherical Mercator"]]
* Note: be sure to have all these projections defined in PROJ4JS_STRINGS
*
POINTER_POSITION_SRS_LIST: [
["EPSG:4326", "WGS 84"],
["EPSG:3857", "Spherical Mercator"]
],*/
/**
* Constant: PROJ4JS_STRINGS
* {Object} The list of supported SRS with their definitions.
* Defaults to "EPSG:4326", "EPSG:3857" & "EPSG:900913" being defined
* Note that "EPSG:900913" is required if OSM_AS_OVMAP is set to true
*
PROJ4JS_STRINGS: {
"EPSG:4326": "+title=WGS 84, +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
"EPSG:2154": "+title=RGF-93/Lambert 93, +proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:900913": "+title=Web Spherical Mercator, +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
"EPSG:3034": "+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +units=m +no_defs",
"EPSG:3035": "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs",
"EPSG:3042": "+proj=utm +zone=30 +ellps=GRS80 +units=m +no_defs",
"EPSG:3043": "+proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs",
"EPSG:3044": "+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs",
"EPSG:3857": "+title=Web Spherical Mercator, +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
"EPSG:3942": "+proj=lcc +lat_1=41.25 +lat_2=42.75 +lat_0=42 +lon_0=3 +x_0=1700000 +y_0=1200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3943": "+proj=lcc +lat_1=42.25 +lat_2=43.75 +lat_0=43 +lon_0=3 +x_0=1700000 +y_0=2200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3944": "+proj=lcc +lat_1=43.25 +lat_2=44.75 +lat_0=44 +lon_0=3 +x_0=1700000 +y_0=3200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3945": "+proj=lcc +lat_1=44.25 +lat_2=45.75 +lat_0=45 +lon_0=3 +x_0=1700000 +y_0=4200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3946": "+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3947": "+proj=lcc +lat_1=46.25 +lat_2=47.75 +lat_0=47 +lon_0=3 +x_0=1700000 +y_0=6200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3948": "+proj=lcc +lat_1=47.25 +lat_2=48.75 +lat_0=48 +lon_0=3 +x_0=1700000 +y_0=7200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3949": "+proj=lcc +lat_1=48.25 +lat_2=49.75 +lat_0=49 +lon_0=3 +x_0=1700000 +y_0=8200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:3950": "+proj=lcc +lat_1=49.25 +lat_2=50.75 +lat_0=50 +lon_0=3 +x_0=1700000 +y_0=9200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
"EPSG:4171": "+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs",
"EPSG:4230": "+proj=longlat +ellps=intl +no_defs",
"EPSG:4258": "+proj=longlat +ellps=GRS80 +no_defs",
"EPSG:4807": "+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +no_defs",
"EPSG:23030": "+proj=utm +zone=30 +ellps=intl +units=m +no_defs",
"EPSG:23031": "+proj=utm +zone=31 +ellps=intl +units=m +no_defs",
"EPSG:23032": "+proj=utm +zone=32 +ellps=intl +units=m +no_defs",
"EPSG:27561": "+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27562": "+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27563": "+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27564": "+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27571": "+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=1200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27572": "+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27573": "+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:27574": "+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=4185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs",
"EPSG:32630": "+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m +no_defs",
"EPSG:32631": "+proj=utm +zone=31 +ellps=WGS84 +datum=WGS84 +units=m +no_defs",
"EPSG:32632": "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
},*/
/**
* Constant: TILE_SINGLE
* {Boolean} When false, activates WMS tiled requests.
* Defaults to false
*/
//TILE_SINGLE: false,
/**
* Constant: TILE_WIDTH
* {Integer} Width of the WMS tiles in pixels.
* Defaults to 512
*/
//TILE_WIDTH: 512,
/**
* Constant: TILE_HEIGHT
* {Integer} Height of the WMS tiles in pixels.
* Defaults to 512
*/
//TILE_HEIGHT: 512,
/**
* Constant: GEONAMES_FILTERS
* {Object} Describes the geonames search options for the searchJSON web service.
* (documentation here: https://www.geonames.org/export/geonames-search.html)
*
* Defaults to France/populated places
*
* Note that it is possible to restrict search to an admin area
* by specifying either an adminCode1 or adminCode2 or adminCode3
* See https://download.geonames.org/export/dump/admin1CodesASCII.txt for adminCode1
* Aquitaine-Limousin-Poitou-Charentes matches '75' while Bretagne (Brittany) matches '53'
*/
GEONAMES_FILTERS: {
username: 'georchestra', // please replace this username by yours !
// You can create a geonames account here: https://www.geonames.org/login
// It is then required to enable your account to query the free web services
// by visiting https://www.geonames.org/manageaccount
country: 'FR', // France
//adminCode1: '75', // Region
style: 'short', // verbosity of results
lang: 'fr',
featureClass: 'P', // class category: populated places
maxRows: 20 // maximal number of results
},
/**
* Constant: GEONAMES_ZOOMLEVEL
* {Integer} The number of zoom levels from maximum zoom level
* to zoom to, when using GeoNames recentering
* Should always be >= 1.
* Defaults to 5
*/
//GEONAMES_ZOOMLEVEL: 5,
/**
* Constant: ANIMATE_WINDOWS
* {Boolean} Display animations on windows opening/closing
* Defaults to true
*/
//ANIMATE_WINDOWS: true,
/**
* Constant: DISPLAY_VISIBILITY_RANGE
* {Boolean} Display the layer visibility range in layer tree
* Defaults to true
*/
//DISPLAY_VISIBILITY_RANGE: true,
/**
* Constant: LAYER_INFO_TEMPLATE
* {String} The template used to format the layer tooltip
* The available variables are those of a GeoExt record
* and protocol, protocol_color, protocol_version, service, layername and short_abstract
*
LAYER_INFO_TEMPLATE: [
'<div style="width:250px;">',
'<span style="background:{protocol_color};padding:0 0.2em;margin:0 0.4em 0 0;',
'border-radius:0.2em;color:#fff;border:0;float:right;">{protocol}</span>',
'<b>{title}</b>',
'<br/><br/>',
'{short_abstract}',
//'<br/><br/>',
//'Layer <b>{layername}</b> served as {protocol} {protocol_version} by {service}',
'</div>'
].join(''),*/
/**
* Constant: PROTOCOL_COLOR
* {Object} Association between protocol and color displayed by LAYER_INFO_TEMPLATE
*
PROTOCOL_COLOR: {
"WMS": "#009d00",
"WFS": "#ff0243",
"WMTS":"#55006a"
},*/
/**
* Constant: ROLES_FOR_STYLER
* {Array} roles required for the styler to show up
* Empty array means the module is available for everyone
* ROLE_USER means the user needs to be connected.
* Defaults to ['ROLE_USER', 'ROLE_GN_REVIEWER', 'ROLE_GN_EDITOR', 'ROLE_GN_ADMIN']
*/
ROLES_FOR_STYLER: [],
/**
* Constant: ROLES_FOR_QUERIER
* {Array} roles required for the querier to show up
* Empty array means the module is available for everyone
* ROLE_USER means the user needs to be connected.
* Defaults to []
*/
//ROLES_FOR_QUERIER: [],
/**
* Constant: ROLES_FOR_PRINTER
* {Array} roles required to be able to print
* Empty array means printing is available for everyone
* ROLE_USER means the user needs to be connected.
* Defaults to []
*/
//ROLES_FOR_PRINTER: [],
/**
* Constant: ROLES_FOR_EDIT
* {Array} roles required for the edit functions to show up
* Empty array means the module is available for everyone
* Defaults to ['ROLE_ADMINISTRATOR']
*/
//ROLES_FOR_EDIT: ['ROLE_ADMINISTRATOR'],
/**
* Constant: PRINT_LAYOUTS_ACL
* {Object} roles required for each print layout
* Empty array means "layout is available for everyone"
*
PRINT_LAYOUTS_ACL: {
// A4 allowed for everyone:
'A4 landscape': [],
'A4 portrait': [],
'Letter landscape': [],
'Letter portrait': [],
// A3 not allowed for unconnected users (guests):
'A3 landscape': ['ROLE_USER', 'ROLE_GN_REVIEWER', 'ROLE_GN_EDITOR', 'ROLE_GN_ADMIN'],
'A3 portrait': ['ROLE_USER', 'ROLE_GN_REVIEWER', 'ROLE_GN_EDITOR', 'ROLE_GN_ADMIN']
},*/
/**
* Constant: DEFAULT_PRINT_LAYOUT
* {String} The default (ie selected) print layout.
* Defaults to "A4 landscape".
* Note: be sure to choose a layout available for everyone
*/
//DEFAULT_PRINT_LAYOUT: "A4 landscape",
/**
* Constant: DEFAULT_PRINT_RESOLUTION
* {String} The default (ie selected) print resolution.
* Defaults to "91"
*/
//DEFAULT_PRINT_RESOLUTION: "91",
/**
* Constant: PDF_FILENAME
* {String} The PDF filename prefix.
* Defaults to "georchestra_${yyyy-MM-dd_hhmmss}"
*/
//PDF_FILENAME: "georchestra_${yyyy-MM-dd_hhmmss}",
/**
* Constant: HELP_URL
* {String} URL of the help ressource.
* Defaults to "https://cms.geobretagne.fr/etiquettes/tutoriels"
*/
//HELP_URL: "https://cms.geobretagne.fr/etiquettes/tutoriels",
/**
* Constant: CONTEXT_LOADED_INDICATOR_DURATION
* {Integer} - If set to 0, do not display the popup
* displaying context information (title + abstract)
* Defaults to 5 seconds.
*/
//CONTEXT_LOADED_INDICATOR_DURATION: 5,
/**
* Constant: DISPLAY_SELECTED_OWS_URL
* {Boolean} - If set to false, do not display the selected WMS/WFS server URL
* in the second field from the "Add layers" popup window.
* (pretty much useless, I know...)
* Defaults to true.
*/
//DISPLAY_SELECTED_OWS_URL: true,
/**
* Constant: CONFIRM_LAYER_REMOVAL
* {Boolean} Do we want a popup dialog to appear on layer removal ?
* Defaults to false
*/
//CONFIRM_LAYER_REMOVAL: false,
/**
* Constant: EDITABLE_LAYERS
* {RegExp}
* PLatform layers only with this config
*/
EDITABLE_LAYERS: /.*georchestra.mydomain.org.*/i,
/**
* Constant: FORCE_LOGIN_IN_TOOLBAR
* {Boolean} If true, the login link is always shown in the app toolbar.
* Defaults to false.
*/
//FORCE_LOGIN_IN_TOOLBAR: false,
/**
* Constant: SEND_MAP_TO
* {Array} List of menu items configs
*
* Each menu item config **must** have the following properties:
* - name: the link name. Will be localized by OpenLayers.i18n
* - url: the template url for the link. Must contain one of
* {context_url}, {map_url} or {id} strings, which will be resp.
* replaced by the generated WMC link, the map permalink and the map id.
*
* Each menu item config **may** have the following properties:
* - qtip: the tip appearing on menu item hover. Will be localized by OpenLayers.i18n
* - iconCls: the CSS class which will be appended to the menu item
*
SEND_MAP_TO: [{
"name": "Mobile viewer",
"url": "/sviewer/?wmc={context_url}",
"qtip": "Mobile compatible viewer"
}, {
"name": "Desktop viewer",
"url": "/mapfishapp/?wmc={context_url}",
"qtip": "Desktop viewer"
}],*/
/**
* Constant: OGC_SERVERS_URL
* {Object} associates OGC interface names with resource file URLs
* (relative to viewer or complete) where the servers are enlisted
*
OGC_SERVERS_URL: {
"WMS": "ws/wms.servers.json",
"WFS": "ws/wfs.servers.json",
"WMTS": "ws/wmts.servers.json"
},*/
/**
* Constant: DEFAULT_SERVICE_TYPE
* {String} The default service type for the "Add layer" window OGC tab.
* Defaults to "WMS"
**/
//DEFAULT_SERVICE_TYPE: "WMS"
// No trailing comma for the last line (or IE will complain)
}