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