forked from mviewer/mviewerstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·1004 lines (963 loc) · 62.4 KB
/
index.html
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
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="fr">
<head>
<title>mviewer studio</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/openlayers/5.3/ol.css" type="text/css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="lib/Sortable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.6.3/papaparse.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.min.js"></script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css"/>
<link rel="stylesheet" href="css/mviewerstudio.css" type="text/css">
<link rel="stylesheet" href="lib/icon-picker/icon-picker.css" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js"></script>
<script type="text/javascript" src="lib/openlayers/5.3/ol.js"></script>
<script src="lib/ogc.js"></script>
<script src="lib/mv.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a id="studio-title" class="navbar-brand" href="#">mviewer studio</a>
</div>
<ul class="nav navbar-nav navbar-right">
<p class="navbar-text" id="user_connected">Non connecté</p>
<li><a role="button" data-toggle="modal" data-target="#mod-importfile" href="#">
<span role="button" class="glyphicon glyphicon-import"></span> Charger</a></li>
<li><a role="button" onclick="saveApplicationParameters(0);" href="#"><span
class="glyphicon glyphicon-floppy-disk"></span> Sauvegarder</a></li>
<li><a role="button" onclick="saveApplicationParameters(1);" href="#"><span
class="glyphicon glyphicon-download"></span> Télécharger</a></li>
<li><a role="button" onclick="saveApplicationParameters(2);" href="#"><span
class="glyphicon glyphicon-globe"></span> Prévisualiser</a></li>
<li id="menu_user_logout"><a role="button" href="./logout"><span
class="glyphicon glyphicon-off"></span> Déconnexion</a></li>
</ul>
</div>
</nav>
<div class="container">
<div id="content">
<!-- Title-->
<form class="form-horizontal">
<fieldset>
<div class="form-group">
<label class="col-md-5 control-label" for="opt-title">Titre de l'application</label>
<div class="col-md-5">
<input id="opt-title" name="textinput" type="text" placeholder="Kartenn"
class="form-control input-md">
</div>
</div>
</fieldset>
</form>
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
<li class="active"><a href="#application-config" data-toggle="tab">Application</a></li>
<li><a href="#themes-config" data-toggle="tab">Thématiques & données</a></li>
<li><a href="#backgroundlayers-config" data-toggle="tab">Couches de fond</a></li>
<li><a href="#search-config" data-toggle="tab">Recherche</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="application-config">
<div class="row">
<div class="col-md-7">
<form class="form-horizontal">
<fieldset>
<!-- logo-->
<div class="form-group">
<label class="col-md-4 control-label" for="opt-logo">URL du logo</label>
<div class="col-md-8">
<input id="opt-logo" name="textinput" type="text"
class="form-control input-md checkedurl"
placeholder="https://geobretagne.fr/pub/logo/region-bretagne.jpg">
</div>
</div>
<!-- help-->
<div class="form-group">
<label class="col-md-4 control-label" for="opt-help">Page d'aide (html)</label>
<div class="col-md-8">
<input id="opt-help" name="textinput" type="text"
class="form-control input-md checkedurl" placeholder="Ex: mviewer_help.html">
</div>
</div>
<!--style-->
<div class="form-group">
<label class="control-label col-md-4" for="frm-style">Style</label>
<div class="col-md-8">
<select id="opt-style" name="style" class="form-control default"
onchange="updateTheme(this);">
<option class="alizarin" value="css/themes/alizarin.css">alizarin</option>
<option class="blue" value="css/themes/blue.css">blue</option>
<option class="default" selected value="css/themes/default.css">default</option>
<option class="nephritis" value="css/themes/nephritis.css">nephritis</option>
<option class="ripe_lemon" value="css/themes/ripe_lemon.css">ripe_lemon</option>
<option class="amethyst" value="css/themes/amethyst.css">amethyst</option>
<option class="carrot" value="css/themes/carrot.css">carrot</option>
<option class="green" value="css/themes/green.css">green</option>
<option class="peter_river" value="css/themes/peter_river.css">peter_river</option>
<option class="black" value="css/themes/black.css">black</option>
<option class="chambray" value="css/themes/chambray.css">chambray</option>
<option class="green_sea" value="css/themes/green_sea.css">green_sea</option>
<option class="pink" value="css/themes/pink.css">pink</option>
<option class="wet_asphalt" value="css/themes/wet_asphalt.css">wet_asphalt</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="checkboxes">Options</label>
<div class="col-md-8">
<div class="checkbox">
<label for="opt-measuretools">
<input type="checkbox" name="checkboxes" id="opt-measuretools">
Outils de mesures
</label>
</div>
<div class="checkbox">
<label for="opt-exportpng">
<input type="checkbox" name="checkboxes" id="opt-exportpng">
Export de la carte au format png
</label>
</div>
<div class="checkbox">
<label for="opt-showhelp">
<input type="checkbox" name="checkboxes" id="opt-showhelp">
Afficher l'aide au démarrage
</label>
</div>
<div class="checkbox">
<label for="opt-coordinates">
<input type="checkbox" name="checkboxes" id="opt-coordinates">
Affichage des coordonnées au click
</label>
</div>
<div class="checkbox">
<label for="opt-togglealllayersfromtheme">
<input type="checkbox" name="checkboxes" id="opt-togglealllayersfromtheme">
Afficher/masquer toutes les données d'une thématique en un clic
</label>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<div class="col-md-5">
<form class="form-horizontal">
<fieldset>
<!-- Map -->
<div class="form-group">
<div class="col-md-12">
<div id="map" class="map"></div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div class="tab-pane" id="themes-config">
<div class="well">
<h4>Sélection, paramétrage et organisation des données</h4>
<p>Dans cette section, créer une ou plusieurs thématiques que vous peuplerez avec des données
provenant de différentes plateformes. Il également est possible d'importer des thématiques externes</p>
</div>
<div class="row">
<div class="col-md-6">
<!-- List with handle -->
<div class="panel panel-default">
<div class="panel-heading">Panneau des thématiques</div>
<div class="panel-body">
<div id="themes-list" class="list-group"></div>
<div class="btn-group">
<button id="btn-addTheme" title="Créer une nouvelle thématique" class="btn btn-primary"
onclick="addTheme('Nouvelle thématique', true, createId('theme'));">
<span class="glyphicon glyphicon-plus" aria-hidden="true"> </span> Créer
</button>
<button id="btn-importTheme" title="Importer une thématique depuis un autre mviewer" class="btn btn-success" onclick="$('#mod-themesview input').prop('checked', false);" data-toggle="modal" data-target="#mod-themesview">
<span class="glyphicon glyphicon-plus" aria-hidden="true"> </span> Importer
</button>
</div>
</div>
<div class="panel-footer">
<div class="checkbox">
<label for="opt-mini">
<input type="checkbox" name="checkboxes" id="opt-mini">
Option d'affichage : réduire le panneau des thématiques au démarrage
</label>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div id="panel-theme" class="panel panel-info" style="display: none;">
<div class="panel-heading">
<h3 class="panel-title">Paramétrage de la Thématique sélectionnée</h3>
</div>
<div class="panel-body" id="theme-edit" data-themeid="">
<div class="input-group">
<span class="input-group-addon">Nom</span>
<input type="text" id="theme-edit-title" class="form-control" placeholder="Titre"
aria-describedby="basic-addon1">
</div>
<div class="checkbox">
<label for="theme-edit-collapsed">
<input type="checkbox" name="checkboxes" id="theme-edit-collapsed" value="0">
Déroulée par défaut
</label>
</div>
<div class="form-group">
<label class="settinglabel">Icône</label>
<span class="selected-icon"></span>
<input type="text" class="icon-class-input" id="theme-pick-icon" />
<button type="button" class="btn btn-primary picker-button">Choisir une icône</button>
</div>
<!-- List with handle -->
<div id="themeLayers" class="list-group"></div>
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button id="btn-addLayer" class="btn btn btn-primary"
onclick="addLayer('Nouvelle couche');">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Ajouter des données
</button>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button id="btn-saveTheme" class="btn btn btn-success"
onclick="saveTheme();">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Ok
</button>
<button class="btn btn btn-default" onclick="$('#panel-theme').hide();">
<span class="glyphicon glyphicon-remove"></span> Annuler
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="backgroundlayers-config">
<div class="row">
<div class="col-sm-6 col-md-6">
</div>
<div class="col-sm-3 col-md-3">
<div class="form-group">
<label class="control-label" for="frm-bl-mode">Mode d'affichage</label>
<select id="frm-bl-mode" name="bl-mode" class="form-control">
<option value="default">normal</option>
<option value="gallery">gallerie</option>
</select>
</div>
</div>
<div class="col-sm-3 col-md-3">
<div class="form-group">
<label class="control-label" for="frm-bl-mode">Fond affiché au démarrage</label>
<select id="frm-bl-visible" name="bl-visible" class="form-control"
onchange="mv.changeVisibleBaseLayer(this.value)"></select>
</div>
</div>
</div>
<div id="frm-bl"></div>
</div>
<div class="tab-pane" id="search-config">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Recherche d'entités</h3></div>
<div class="panel-body">
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="opt-searchfeatures" required>
<label class="form-check-label" for="opt-searchfeatures">
Activer la recherche d'entités
</label>
</div>
</div>
<p>
La recherche d'entités peut être activée sur les couches de type geojson.
</p>
<p>
Cette fonctionnalité est également activable pour les couches de type WMS à la condition que les
entités qui composent cette couche soient également indexées par Elasticsearch.
</p>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Recherche d'adresses</h3></div>
<div class="panel-body">
<div class="form-group">
<label class="control-label col-md-4" for="frm-searchlocalities">Service utilisé</label>
<select id="frm-searchlocalities" name="searchlocalities" class="form-control"
onchange="mv.changeSearchLocalities(this.value)" style="width:auto;">
<option value="false">Non utilisé</option>
<option value="ban">Base adresse Nationale</option>
<option value="geoportail">Géoportail</option>
</select>
</div>
<form id="searchlocalities_options" class="form-horizontal">
<div class="form-group">
<label class="col-md-4 control-label" for="opt-searchlocalities-url">URL</label>
<div class="col-md-4">
<input id="opt-searchlocalities-url" type="text" placeholder="Url"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label"
for="opt-searchlocalities-attribution">Attribution</label>
<div class="col-md-4">
<input id="opt-searchlocalities-attribution" type="text"
placeholder="Attribution du service" class="form-control input-md">
</div>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Elasticsearch</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label class="control-label col-md-4" for="frm-globalsearch">Options</label>
<select id="frm-globalsearch" name="globalsearch" class="form-control"
onchange="mv.changeGlobalSearch(this.value)" style="width:auto;">
<option value="false">Non utilisé</option>
<option value="elasticsearch">Activé</option>
</select>
</div>
<form id="searchelasticsearch_options" class="form-horizontal">
<div class="form-group">
<label class="col-md-4 control-label" for="opt-elasticsearch-url">URL
Elasticsearch</label>
<div class="col-md-4">
<input id="opt-elasticsearch-url" type="text" placeholder="Url Elasticsearch"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="opt-elasticsearch-geometryfield">geometryfield</label>
<div class="col-md-4">
<input id="opt-elasticsearch-geometryfield" type="text" placeholder="geometryfield"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="opt-elasticsearch-linkid">linkid</label>
<div class="col-md-4">
<input id="opt-elasticsearch-linkid" type="text" placeholder="linkid"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="opt-elasticsearch-doctypes">doctypes</label>
<div class="col-md-4">
<input id="opt-elasticsearch-doctypes" type="text" placeholder="doctypes"
class="form-control input-md">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-4" for="opt-elasticsearch-querymode">Mode</label>
<select id="opt-elasticsearch-querymode" class="form-control" style="width:auto;"
onchange="">
<option value="match">match</option>
<option value="term">term</option>
<option value="phrase">phrase</option>
</select>
</div>
<div class="checkbox">
<label for="opt-elasticsearch-bbox">
<input type="checkbox" id="opt-elasticsearch-bbox" value="0">
Rechercher dans l'emprise de la carte
</label>
</div>
<div class="form-group">
<label class="control-label col-md-4" for="opt-elasticsearch-version">Version</label>
<select id="opt-elasticsearch-version" class="form-control" style="width:auto;"
onchange="">
<option value="current">current</option>
<option value="1.4">1.4</option>
</select>
</div>
</form>
</div>
</div>
</div>
</div> <!-- tab-content-->
<!-- Modal user group selection-->
<div class="modal fade" id="mod-groupselection" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Sélectionner un groupe</h4>
<p>Vous appartenez à plusieurs groupes. Vous devez en sélectionner un pour créer ou enregistrer une carte associée à celui-ci.
</div>
<div class="modal-body">
<div class="list-group" id="user_group_list"></div>
</div>
</div>
</div>
</div>
<!-- Modal file import-->
<div class="modal fade" id="mod-importfile" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Charger un fichier de configuration</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#serverside" aria-controls="serverside" role="tab" data-toggle="tab">Localisé sur le serveur</a></li>
<li role="presentation"><a href="#local" aria-controls="local" role="tab" data-toggle="tab">Sur votre ordinateur</a></li>
</ul>
<br>
<div class="tab-content">
<div role="tabpanel" class="tab-pane" id="local">
<div class="alert alert-info">
<label>Choisissez un fichier</label>
<div class="input-group">
<input type="text" id="subfile" class="form-control">
<span class="input-group-btn">
<button class="btn btn-primary" type="button"
onclick="$('#filebutton').click();">
<span class="glyphicon glyphicon-folder-open"></span>
Parcourir...
</button>
</span>
</div>
<input type="file" name="filebutton" style="display: none;" id="filebutton">
</div>
</div>
<div role="tabpanel" class="tab-pane active" id="serverside">
<form class="form-inline">
<div class="form-group" style="display: none;">
<label for="apps_group_list">Groupe</label>
<select class="form-control" id="apps_group_list" onchange="mv.filterApplications()"></select>
</div>
<div class="form-group" style="display: none;">
<label for="apps_creator_list">Auteur</label>
<select class="form-control" id="apps_creator_list" onchange="mv.filterApplications()"></select>
</div>
</form>
<br>
<div class="list-group" id="liste_applications"></div>
<div class="text-right">
<button type="button" class="btn btn-danger" onclick="deleteMyApplications();">
<span class="glyphicon glyphicon-trash"></span>
Supprimer toutes mes applications
</button>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<!-- Modal layer options-->
<div class="modal fade" id="mod-layerOptions" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Edition de couche</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist" id="layer_sections_menu">
<li role="presentation" class="active"><a href="#layer_conf1" role="tab" data-toggle="tab">Base</a>
</li>
<li role="presentation"><a href="#layer_conf2" role="tab" data-toggle="tab">Fiche</a></li>
<li role="presentation"><a href="#layer_conf3" role="tab" data-toggle="tab">Affichage</a>
</li>
<li role="presentation"><a href="#layer_conf4" role="tab" data-toggle="tab">Filtre</a></li>
<li role="presentation"><a href="#layer_conf5" role="tab" data-toggle="tab">Liste de
choix</a></li>
<li role="presentation"><a href="#layer_conf6" role="tab" data-toggle="tab">Recherche</a>
</li>
</ul>
<div class="tab-content" id="layer_sections">
<div role="tabpanel" class="tab-pane active" id="layer_conf1">
<form>
<div class="form-group">
<label for="frm-layer-title">Nom</label>
<input type="text" class="form-control" id="frm-name"
placeholder="nom de la couche">
</div>
<!--<div class="form-group">
<label for="frm-type">Type</label>
<input type="text" class="form-control" id="frm-type" placeholder="type">
</div>-->
<div class="form-group">
<label class="control-label" for="frm-type">Type</label>
<select id="frm-type" name="type" class="form-control"
onchange="mv.changeLayerType(this.value);">
<option value="wms">wms</option>
<option value="geojson">geojson</option>
<option value="kml">kml</option>
<option value="customlayer">customlayer</option>
</select>
</div>
<div class="form-group">
<label for="frm-layerid">id</label>
<input type="text" class="form-control" id="frm-layerid" placeholder="id">
</div>
<div class="form-group">
<label for="frm-url">url</label>
<input type="text" class="form-control checkedurl" id="frm-url"
placeholder="url">
</div>
<div class="form-group">
<label for="frm-attribution">Attributions</label>
<input type="text" class="form-control" id="frm-attribution"
placeholder="Attribution">
</div>
<div class="form-group">
<label for="frm-metadata">URL fiche de métadonnées (html)</label>
<input type="text" class="form-control checkedurl" id="frm-metadata"
placeholder="metadata">
</div>
<div class="form-group">
<label for="frm-metadata-csw">URL fiche de métadonnées (xml)</label>
<input type="text" class="form-control checkedurl" id="frm-metadata-csw"
placeholder="metadata-csw">
</div>
<div class="form-group">
<label class="control-label" for="frm-type">Contraintes d'accès</label>
<select id="frm-secure" name="type" class="form-control">
<option value="public">Accès public</option>
<option value="global">Accès soumis à authentification globale (CAS georchestra)</option>
<option value="layer">Accès soumis à authentification au niveau du service (Basic Authent)</option>
</select>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-useproxy" type="checkbox"> Utiliser le proxy du viewer (nécessaire si HTTPS non disponible pour la couche)
</label>
</div>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="layer_conf2">
<form>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-queryable" type="checkbox">interrogeable
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="frm-infopanel">Position fiche
info</label>
<select id="frm-infopanel" name="infoformat" class="form-control">
<option value="right-panel">Panneau de droite</option>
<option value="bottom-panel">Panneau du bas</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="frm-infoformat">Format de la fiche
d'information</label>
<select id="frm-infoformat" name="infoformat" class="form-control"
onchange="mv.showHideQueryParameters(this.value);">
<option value="text/html">standard</option>
<option value="application/vnd.ogc.gml">personnalisé</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="frm-featurecount">Limitation du nombre de réponses</label>
<input type="number" class="form-control" id="frm-featurecount"
placeholder="Nombre max d'entités retournées" step="1" min="1"
max="50" value="5">
</div>
</div>
</div>
<div id="query-parameters">
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-template" type="checkbox">Utliser un template
</label>
</div>
<label for="frm-template-url">URL template</label>
<input type="text" class="form-control checkedurl" id="frm-template-url"
placeholder="URL template"/>
</div>
<div class="form-group">
<label class="control-label" for="frm-fields">Champs</label>
<div id="frm-lis-fields"></div>
</div>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="layer_conf3">
<form>
<div class="form-group">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-tiled" type="checkbox"> Couche tuilée
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-visible" type="checkbox"> Visible au
démarrage
</label>
</div>
</div>
</div>
</div>
<label for="frm-sld">SLD externe</label>
<input type="text" class="form-control checkedurl" id="frm-sld"
placeholder="URL SLD externe"/>
<label for="frm-legendurl">Légende statique</label>
<input type="text" class="form-control checkedurl" id="frm-legendurl"
placeholder="URL vers Image légende"/>
<div class="row">
<div class="col-md-4">
<div class="form-group" lang="en-US">
<label for="frm-opacity">Opacité</label>
<input type="number" class="form-control" id="frm-opacity"
placeholder="Opacité (0 à 1)" step="0.1" min="0.1" max="1.0"
value="1">
</div>
</div>
<div class="col-md-4">
<label for="frm-scalemin">Echelle mini</label>
<input type="number" class="form-control" id="frm-scalemin"
placeholder="Echelle mini"/>
</div>
<div class="col-md-4">
<label for="frm-scalemax">Echelle maxi</label>
<input type="number" class="form-control" id="frm-scalemax"
placeholder="Echelle maxi"/>
</div>
</div>
<label class="control-label" for="frm-styles">Styles</label>
<div class="row" id="frm-lis-styles"></div>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="layer_conf4">
<div class="well">Filtre côté serveur</div>
<form>
<div class="row">
<div class="col-md-12">
<label for="frm-filter">filtre actif</label>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="form-group">
<input type="textarea" class="form-control" id="frm-filter"
placeholder="filtre cql">
</div>
</div>
<div class="col-md-4">
<button type="button" onclick="$('#filter_wizard').toggle();"
class="btn btn-primary">Créer un filtre
</button>
</div>
</div>
<div id="filter_wizard" style="display:none;">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#attribute_filter"
aria-controls="attribute_filter"
role="tab" data-toggle="tab">Filtre
attributaire</a></li>
<li role="presentation"><a href="#geo_filter" aria-controls="geo_filter"
role="tab" data-toggle="tab">Filtre
géographique</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="attribute_filter">
<div class="form-group">
<label class="control-label">Champs</label>
<select id="attribute_filter_fields" name="fields"
class="form-control"
onchange="extractFeatures(this.value, 'source')">
</select>
</div>
<div class="form-group">
<label class="control-label">Opérateur</label>
<select id="attribute_filter_operators" name="operators"
class="form-control">
<option value="=">=</option>
<option value="IN">IN</option>
<option value="NOT IN">NOT IN</option>
</select>
</div>
<div class="row">
<div class="col-md-8">
<label class="control-label">valeurs sélectionnées</label>
<div class="form-group">
<input type="text" value="" data-role="tagsinput"
id="source_fields_tags" class="form-control"/>
</div>
</div>
<div class="col-md-4" style="padding-top: 25px;">
<button type="button" onclick="mv.saveSourceAttributeFilter()"
class="btn btn-success">Appliquer le filtre
</button>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="geo_filter">
<div id="map_filter" class="map"></div>
</div>
</div>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="layer_conf5">
<div class="well">Filtre côté client</div>
<form>
<div class="form-group">
<div class="form-group">
<label for="frm-attributelabel">Label</label>
<input type="textarea" class="form-control" id="frm-attributelabel"
placeholder="Texte à afficher">
</div>
<div class="form-group">
<label class="control-label">Champs</label>
<select id="opt-attributefield" name="fields" class="form-control"
onchange="extractFeatures(this.value,'control')">
</select>
<label class="control-label">valeurs sélectionnées</label>
<div class="form-group">
<input type="text" value="" data-role="tagsinput"
id="control_fields_tags" class="form-control"/>
</div>
</div>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="layer_conf6">
<form>
<div class="form-group">
<div class="checkbox">
<label>
<input id="frm-searchable" type="checkbox"> Activer la recherche pour
cette donnée
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="frm-searchengine">Moteur de recherche</label>
<select id="frm-searchengine" class="form-control"
onchange="mv.changeSearchEngine(this.value)">
<option value="elasticsearch">elasticsearch</option>
<option value="fuse">fuse</option>
</select>
</div>
<div id="fuse_options">
<div class="form-group">
<label for="frm-fusesearchkeys">fusesearchkeys</label>
<input type="text" class="form-control" id="frm-fusesearchkeys"
placeholder="fusesearchkeys">
</div>
<div class="form-group">
<label for="frm-fusesearchkeys">fusesearchresult</label>
<input type="text" class="form-control" id="frm-fusesearchresult"
placeholder="fusesearchresult">
</div>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" onclick="mv.saveLayerOptions()" class="btn btn-success">Enregistrer
</button>
<button type="button" onclick="mv.form2xml()" class="btn btn-info">Voir</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<!-- Modal codeView-->
<div class="modal fade" id="mod-codeview" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Configuration XML</h4>
</div>
<div class="modal-body">
<div class="row">
<pre></pre>
</div><!-- /.row -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<!-- Modal featuresView-->
<div class="modal fade" id="mod-featuresview" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Sélection de données</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<label class="control-label">Valeurs</label>
<div id="distinct_values" class="list-group"></div>
</div>
</div><!-- /.row -->
</div>
</div>
</div>
</div>
<!-- Modal Themes import-->
<div class="modal fade" id="mod-themesview" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Sélection de Thématiques</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<div id="importedThemes" class="list-group">
</div>
</div>
</div><!-- /.row -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal" onclick="importThemes()">Importer</button>
</div>
</div>
</div>
</div>
<!-- Modal new Layer-->
<div class="modal fade" id="mod-layerNew" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Rechercher des données</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="input-group">
<input type="text" id="input-ogc-filter" class="form-control" aria-label="..."
placeholder="Rechercher...">
<div class="input-group-btn">
<button id="providers_dropdown" type="button" class="btn btn-warning dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Fournisseurs de données<span class="caret"/></button>
<ul class="dropdown-menu dropdown-menu-right" id="providers_list">
</ul>
<button id="provider_search_btn" type="button" class="btn btn-primary" disabled="enabled" onclick="mv.search()"><span class="glyphicon glyphicon-search"/>
</button>
</div><!-- /btn-group -->
</div><!-- /input-group -->
</div><!-- /.col-md-12 -->
</div><!-- /.row -->
<div class="row text-center text-warning" style="padding: 1rem;" id="search-message">
Aucun fournisseur sélectionné. Veuillez en choisir un.
</div>
<div class="row ogc-results" id="csw-results" style="display: none;"></div>
<div class="row ogc-results" id="wms-results" style="display: none;"></div>
<div class="row ogc-results" id="wfs-results" style="display: none;"></div>
</div>
<div class="modal-footer">
<div class="pull-left">
<div class="form form-inline">
<div class="form-group">
<input class="form-control custom-url" type="text"
placeholder="URL du fournisseur..." oninput="updateAddProviderButtonState(this);"> </input>
<select class="form-control">
<option value="csw">CSW</option>
<option value="wms">WMS</option>
</select>
<input class="form-control custom-title" type="text" placeholder="Nom..." oninput="updateAddProviderButtonState(this);"> </input>
<button id="add_provider_btn" type="button" class="btn btn-primary" disabled onclick="addNewProvider(this);">
Ajouter un fournisseur
</button>
</div>
</div>
</div>
<button type="button" class="btn btn-success" onclick="mv.getConfLayers();">Sélectionner</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<!-- Modal icon picker-->
<div id="iconPicker" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Liste des icônes</h4>
</div>
<div class="modal-body" style="max-height: calc(100vh - 200px);overflow-y: auto;">
<div>
<ul class="icon-picker-list">
<li>
<a data-class="{{item}} {{activeState}}" data-index="{{index}}">
<span class="{{item}}"></span>
<span class="name-class">{{item}}</span>
</a>
</li>
</ul>
</div>
</div>
<div class="modal-footer">
<button type="button" id="change-icon" class="btn btn-success">
<span class="fa fa-check-circle-o"></span>
Utiliser l'icône sélectionnée
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
</div>
</div>
</div>
</div>
</div>
</div>