[PLUGINS] ~spip_carte_de_sites v1.2.1-->v1.3.1
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 14 Mar 2017 11:40:42 +0000 (12:40 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 14 Mar 2017 11:40:42 +0000 (12:40 +0100)
www/plugins/spip_carte_de_sites/contenu/page-carte_de_sites.html
www/plugins/spip_carte_de_sites/inclure/boite.html
www/plugins/spip_carte_de_sites/lang/carte_de_sites_en.php
www/plugins/spip_carte_de_sites/lang/carte_de_sites_fr.php
www/plugins/spip_carte_de_sites/paquet.xml

index 99587e0..74a51a3 100755 (executable)
@@ -24,8 +24,8 @@
 
 <div id="map" style="[(#ENV{larg}|oui) width: [(#ENV{larg}|sinon{'540'})px;]] height: [(#ENV{haut}|sinon{'400'})]px">
 
-<script src="[(#CHEMIN{lib/leaflet-gis-4.1.13/dist/leaflet.js}|url_absolue)]" type="text/javascript"></script>
-<script src="[(#CHEMIN{lib/leaflet-gis-4.1.13/plugins/control/Control.FullScreen.js}|url_absolue)]" type="text/javascript"></script>
+<script src="[(#CHEMIN{lib/leaflet/dist/leaflet.js}|url_absolue)]" type="text/javascript"></script>
+<script src="[(#CHEMIN{lib/leaflet/plugins/Control.FullScreen.js}|url_absolue)]" type="text/javascript"></script>
 
 
 <script>
@@ -46,7 +46,7 @@
                <BOUCLE_coord(GIS){id_syndic}>
                      var markerGis = new L.Marker(new L.LatLng(#LAT, #LON), {icon: gisIcon});
                            [(#ENV{popup}|!={non}|oui)
-                         markerGis.bindPopup("[(#ENV{images}|!={non}|oui)<span style='float: left; width: 45px;'><img src='[(#LOGO_SYNDIC||extraire_attribut{src}|url_absolue)]' alt='' width='100%' height='100%'></span>]<h4>#TITRE</h4>#DESCRIPTIF[(#ENV{images}|!={non}|oui)<span class='spip_documents spip_documents_right' style='float: right; width: 100px;'>\<img src='[(#LOGO_SYNDIC_SURVOL||extraire_attribut{src}|url_absolue)]' alt='' style='width: 100px;' width='100'></span>]#ADRESSE<br/> #CODE_POSTAL #VILLE<br/><a href='#URL_SITE' target='_blank'>#NOM_SITE - #URL_SITE</a><br/><br/><em>Statut: [(#_mots_types:TITRE|supprimer_numero)]</em>");
+                         markerGis.bindPopup("[(#ENV{images}|!={non}|oui)<span style='float: left; width: 45px;'><img src='[(#LOGO_SYNDIC||extraire_attribut{src}|url_absolue)]' alt='' width='100%' height='100%'></span>]<h4>#TITRE</h4>#DESCRIPTIF[(#ENV{images}|!={non}|oui)<span class='spip_documents spip_documents_right' style='float: right; width: 100px;'>\<img src='[(#LOGO_SYNDIC_SURVOL||extraire_attribut{src}|url_absolue)]' alt=''  width='100px' height='100%'></span>]#ADRESSE<br/> #CODE_POSTAL #VILLE<br/><a href='#URL_SITE' target='_blank'>#NOM_SITE - #URL_SITE</a><br/><br/><em>Statut: [(#_mots_types:TITRE|supprimer_numero)]</em>");
                      ]
                      group_#ID_MOT.addLayer(markerGis)
                </BOUCLE_coord>
     var cloudmadeAttribution = 'Map data &copy; OpenStreetMap contributors<br/>[(#ENV{lien}|!={non}|oui)(<a href="#URL_SITE_SPIP/?page=carte_de_sites_plein&lien=non&groupe=#ENV{groupe}&boite=oui&haut=400[&lat=(#ENV{lat})][&lon=(#ENV{lon})][&zoom=(#ENV{zoom})][&legende=(#ENV{legende})]" rel="external" target="_blank"><:carte_de_sites:grande_carte:></a>)]',
         cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png';
 
-    var midnightCommander = new L.TileLayer(cloudmadeUrl, {styleId: 999, attribution: cloudmadeAttribution}),
-        thunderforest = new L.TileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', {attribution: cloudmadeAttribution}),
-        minimal = new L.TileLayer(cloudmadeUrl, {styleId: [(#ENV{style}|sinon{'14189'})], attribution: cloudmadeAttribution});
+    var osmfr = new L.TileLayer('https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {attribution: cloudmadeAttribution});
 
     //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(thunderforest);
+    map.setView(new L.LatLng([(#ENV{lat}|sinon{'46.8'})],[(#ENV{lon}|sinon{'2.52'})]),[(#ENV{zoom}|sinon{5})]).addLayer(osmfr);
     [(#ENV{fullscreen}|oui)
         map.addControl(new L.Control.FullScreen());
     ]
index 99c2596..5ca0df6 100644 (file)
@@ -1,8 +1,6 @@
 //Definition des fonds de carte
        var baseMaps = {
-                                "<:carte_de_sites:vue_cycle:>": thunderforest,
-                                "<:carte_de_sites:vue_jour:>": minimal,
-                                "<:carte_de_sites:vue_nuit:>": midnightCommander
+                                "<:carte_de_sites:vue_osmfr:>": osmfr
                         };
 
 //Definition des calques de marqueurs
index 85716b7..11faf15 100644 (file)
@@ -4,9 +4,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 'legende' => 'Key',
 'inclure_carte' => 'To insert the map in your website ...',
 'coordonnees_clic' => 'Coordinates of your click has just been reported in the survey below. To be more accurate, you can zoom even more on your bike co-op and click again.',
-'vue_cycle' => 'Bike ways',
-'vue_nuit' => 'Night view',
-'vue_jour' => 'Day view',
+'vue_osmfr' => 'OSMĀ FR',
 'aide_iframe' => 'Copy and paste the following code to insert the map in your website.',
 'grande_carte' => 'Go to the fullscreen map',
 'nom_carte' => 'Bike co-ops Map',
index 9caa0b8..49b769b 100644 (file)
@@ -4,9 +4,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 'legende' => 'L&eacute;gende',
 'inclure_carte' => 'Pour inclure la carte dans votre site oueb ...',
 'coordonnees_clic' => 'Les coordonn&eacute;es de votre clic ont &eacute;t&eacute; report&eacute;es dans le formulaire ci-dessous. Pour &ecirc;tre encore plus pr&eacute;cis, vous pouvez zoomer plus encore sur votre atelier et re-cliquer.',
-'vue_cycle' => 'Voies cyclables',
-'vue_nuit' => 'Vue de nuit',
-'vue_jour' => 'Vue de jour',
+'vue_osmfr' => 'OSM FR',
 'aide_iframe' => 'Ins&eacute;rer le code ci-dessous pour int&eacute;grer la carte dans votre site oueb.',
 'grande_carte' => 'Voir la carte en plus grand',
 'nom_carte' => 'Carte des ateliers',
index 714d25a..6344931 100755 (executable)
@@ -1,8 +1,8 @@
 <paquet
     prefix="carte_de_sites"
     categorie="divers"
-    version="1.2.1"
-    etat="dev"
+    version="1.3.1"
+    etat="stable"
     compatibilite="[3.0.0;3.1.*]"
     documentation="http://www.wiklou.org/index.php/Inclusion_de_la_carte"
 >
@@ -10,7 +10,7 @@
     <nom>Carte de sites</nom>
     <auteur lien="http://www.heureux-cyclage.org">L'Heureux Cyclage</auteur>
     <credit lien="http://contrib.spip.net/4189">b_b</credit>
-    <copyright>2011-2015</copyright>
+    <copyright>2011-2017</copyright>
     <licence>GPL v3</licence>
-    <necessite nom="gis" compatibilite="[4.3.0;]"/>
+    <necessite nom="gis" compatibilite="[4.43.1;]"/>
 </paquet>