[layer] +OpenCycleMap
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 11 Oct 2012 19:15:32 +0000 (21:15 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 11 Oct 2012 19:15:32 +0000 (21:15 +0200)
contenu/page-carte_de_sites.html
inclure/boite.html
lang/carte_de_sites_en.php
lang/carte_de_sites_fr.php

index 873cf16..33bb6c2 100755 (executable)
       cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
                
    var midnightCommander = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: 999}),
+      thunderforest = new L.TileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'),
       minimal = new L.TileLayer(cloudmadeUrl, cloudmadeOptions, {styleId: [(#ENV{style}|sinon{'14189'})]});
                
        //Construction de la carte
    var map = new L.Map('map');
-   map.setView(new L.LatLng([(#ENV{lat}|sinon{'46.8'})],[(#ENV{lon}|sinon{'2.52'})]),[(#ENV{zoom}|sinon{5})]).addLayer(minimal);
+   map.setView(new L.LatLng([(#ENV{lat}|sinon{'46.8'})],[(#ENV{lon}|sinon{'2.52'})]),[(#ENV{zoom}|sinon{5})]).addLayer(thunderforest);
        
        //Ajout des marqueurs   
    <BOUCLE_map(MOTS){type = (#ENV{groupe})}{!par num titre}>
index de86a80..99c2596 100644 (file)
@@ -1,8 +1,9 @@
 //Definition des fonds de carte
        var baseMaps = {
-                               "<:carte_de_sites:vue_nuit:>": midnightCommander,                               
-                               "<:carte_de_sites:vue_jour:>": minimal
-                       };
+                                "<:carte_de_sites:vue_cycle:>": thunderforest,
+                                "<:carte_de_sites:vue_jour:>": minimal,
+                                "<:carte_de_sites:vue_nuit:>": midnightCommander
+                        };
 
 //Definition des calques de marqueurs
     <B_groups>
index 8ad6bf1..a6556fe 100644 (file)
@@ -4,6 +4,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 'legende' => 'Key',
 'inclure_carte' => 'To insert the map in your website ...',
 'coordonnees_clic' => 'Coordinates of your clic (Latitude,Longitude)',
+'vue_cycle' => 'Bike ways',
 'vue_nuit' => 'Night view',
 'vue_jour' => 'Day view',
 'aide_iframe' => 'Copy and paste the following code to insert the map in your website.',
index 389ad81..5efdb55 100644 (file)
@@ -4,6 +4,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 'legende' => 'L&eacute;gende',
 'inclure_carte' => 'Pour inclure la carte dans votre site oueb ...',
 'coordonnees_clic' => 'Coordonn&eacute;es de votre clic (Latitude,Longitude)',
+'vue_cycle' => 'Voies cyclables',
 'vue_nuit' => 'Vue de nuit',
 'vue_jour' => 'Vue de jour',
 'aide_iframe' => 'Ins&eacute;rer le code ci-dessous pour int&eacute;grer la carte dans votre site oueb.',