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}>
//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>
'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.',
'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.',