1 #HTTP_HEADER{Content-type:text/javascript}
3 [(#INCLURE{lib/leaflet/dist/[(#CONFIG{auto_compress_js}|=={oui}|?{'leaflet','leaflet-src'})].js})]
5 [L.Icon.Default.imagePath =
"(#CHEMIN{lib/leaflet/dist/images}|url_absolue)";]
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)]
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)]"
22 [(#INCLURE{javascript/gis_geocoder.js})]
24 [(#INCLURE{javascript/gis_utils.js})]
26 [(#INCLURE{lib/leaflet/plugins/KML.js})]
28 [(#INCLURE{lib/leaflet/plugins/GPX.js})]
30 [(#INCLURE{lib/leaflet/plugins/leaflet-providers.js})]
32 [(#INCLURE{lib/leaflet/plugins/Control.FullScreen.js})]
34 [(#INCLURE{lib/leaflet/plugins/Control.MiniMap.js})]
36 [(#REM) Scripts de google et bing si besoin ]
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}}
43 [(#LISTE{google_roadmap,google_satellite,google_terrain}|array_intersect{#GET{layers}}|count|
>{
0}|oui)
44 [(#INCLURE{lib/leaflet/plugins/Google.js})]
47 [(#VAL{bing_aerial}|in_array{#GET{layers}}|oui)
48 [(#INCLURE{lib/leaflet/plugins/Bing.js})]
51 [(#INCLURE{lib/leaflet/plugins/leaflet.markercluster-src.js})]
53 [(#INCLURE{javascript/leaflet.gis.js})]
55 [(#CONFIG{auto_compress_js}|=={oui}|oui)