From 8d01e687ab2cc0a732837e3523d37549eeaaa3cb Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Thu, 11 Oct 2012 21:15:32 +0200 Subject: [PATCH] [layer] +OpenCycleMap --- contenu/page-carte_de_sites.html | 3 ++- inclure/boite.html | 7 ++++--- lang/carte_de_sites_en.php | 1 + lang/carte_de_sites_fr.php | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/contenu/page-carte_de_sites.html b/contenu/page-carte_de_sites.html index 873cf16..33bb6c2 100755 --- a/contenu/page-carte_de_sites.html +++ b/contenu/page-carte_de_sites.html @@ -53,11 +53,12 @@ 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 diff --git a/inclure/boite.html b/inclure/boite.html index de86a80..99c2596 100644 --- a/inclure/boite.html +++ b/inclure/boite.html @@ -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 diff --git a/lang/carte_de_sites_en.php b/lang/carte_de_sites_en.php index 8ad6bf1..a6556fe 100644 --- a/lang/carte_de_sites_en.php +++ b/lang/carte_de_sites_en.php @@ -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.', diff --git a/lang/carte_de_sites_fr.php b/lang/carte_de_sites_fr.php index 389ad81..5efdb55 100644 --- a/lang/carte_de_sites_fr.php +++ b/lang/carte_de_sites_fr.php @@ -4,6 +4,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'legende' => 'Légende', 'inclure_carte' => 'Pour inclure la carte dans votre site oueb ...', 'coordonnees_clic' => 'Coordonnées de votre clic (Latitude,Longitude)', +'vue_cycle' => 'Voies cyclables', 'vue_nuit' => 'Vue de nuit', 'vue_jour' => 'Vue de jour', 'aide_iframe' => 'Insérer le code ci-dessous pour intégrer la carte dans votre site oueb.', -- 2.20.1