[PLUGINS] ~gis v4.41.1 --> v4.43.1
[lhc/web/www.git] / www / plugins / gis / javascript / gis.js.html
1 #HTTP_HEADER{Content-type:text/javascript}
2
3 [(#INCLURE{lib/leaflet/dist/leaflet-src.js})]
4
5 [(#REM) Déprécié avec Leaflet 1.0, mais nécessaire si le site utilise compresseur_embarquer_images_css ]
6 [L.Icon.Default.imagePath = '(#CHEMIN{lib/leaflet/dist/images/}|url_absolue)';]
7
8 (function() {
9
10 L.gisConfig = {
11 'gis_layers': #EVAL{json_encode($GLOBALS['gis_layers'])},
12 'default_layer': '[(#REM|gis_layer_defaut)]',
13 'affiche_layers': [(#CONFIG{gis/layers,#ARRAY}|json_encode)]
14 };
15
16 L.geocoderConfig = {
17 'forwardUrl': '[(#VAL{gis_geocoder_rechercher}|generer_url_action{mode=search}|html_entity_decode)]',
18 'reverseUrl': '[(#VAL{gis_geocoder_rechercher}|generer_url_action{mode=reverse}|html_entity_decode)]'
19 };
20
21 })();
22
23 [(#INCLURE{javascript/gis_geocoder.js})]
24
25 [(#INCLURE{javascript/gis_utils.js})]
26
27 [(#INCLURE{lib/leaflet/plugins/KML.js})]
28
29 [(#INCLURE{lib/leaflet/plugins/GPX.js})]
30
31 [(#INCLURE{lib/leaflet/plugins/TOPOJSON.js})]
32
33 [(#INCLURE{lib/leaflet/plugins/leaflet-providers.js})]
34
35 [(#INCLURE{lib/leaflet/plugins/Control.FullScreen.js})]
36
37 [(#INCLURE{lib/leaflet/plugins/Control.MiniMap.js})]
38
39 [(#REM) Scripts de google et bing si besoin ]
40
41 #SET{layers,#CONFIG{gis/layers,#ARRAY{0,openstreetmap_mapnik}}}
42 [(#VAL|gis_layer_defaut|in_array{#GET{layers}}|non)
43 #SET{layers,#GET{layers}|push{#VAL|gis_layer_defaut}}
44 ]
45
46 [(#LISTE{google_roadmap,google_satellite,google_terrain}|array_intersect{#GET{layers}}|count|>{0}|oui)
47 [(#INCLURE{lib/leaflet/plugins/Leaflet.GoogleMutant.js})]
48 ]
49
50 [(#VAL{bing_aerial}|in_array{#GET{layers}}|oui)
51 [(#INCLURE{lib/leaflet/plugins/Bing.js})]
52 ]
53
54 [(#INCLURE{lib/leaflet/plugins/leaflet.markercluster-src.js})]
55
56 [(#INCLURE{javascript/leaflet.gis.js})]
57
58 [(#CONFIG{auto_compress_js}|=={oui}|oui)
59 // gis.js
60 #FILTRE{trim|compacte}]