Project

General

Profile

Anomalie #955

Fond carte Plugin Map indisponible

Added by Al Bo almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Urgent
Start date:
07/25/2016
Due date:
% Done:

0%

Estimated time:
Vote:

Description

Bonjour à tous,

Le fond de carte du Plugin Map n'est plus disponible.

Quelqu'un à t'il ne solution pour le modifier ?

J'ai bien une clé pour le script https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js, mais je ne sais pas ou l'insérer pour que le fond de cart s'affiche.

Merci à tous.

#1

Updated by Johan Cwiklinski almost 5 years ago

  • Project changed from Galette to Maps
  • Category deleted (Plugins)
  • Status changed from Nouveau to In Progress
  • Assignee set to Johan Cwiklinski
  • Priority changed from Normal to Urgent

Changement pour utiliser le fournisseur "Carto" :

diff --git a/templates/default/common_scripts.tpl b/templates/default/common_scripts.tpl
index 1dc1619..52c3166 100644
--- a/templates/default/common_scripts.tpl
+++ b/templates/default/common_scripts.tpl
@@ -179,10 +179,9 @@
         }).addTo(map);
 {/if}

-        L.tileLayer('http://{ldelim}s{rdelim}.mqcdn.com/tiles/1.0.0/map/{ldelim}z{rdelim}/{ldelim}x{rdelim}/{ldelim}y{rdelim}.jpg', {
-            subdomains: ['otile1', 'otile2', 'otile3', 'otile4'],
+        L.tileLayer('http://{ldelim}s{rdelim}.basemaps.cartocdn.com/light_all/{ldelim}z{rdelim}/{ldelim}x{rdelim}/{ldelim}y{rdelim}.png', {
             maxZoom: 18,
-            attribution: '{_T string="Map data ©" escape="js"} <a href="http://openstreetmap.org">{_T string="OpenStreetMap contributors" escape="js"}</a>, {_T string="Imagery ©" escape="js"} <a href="http://www.mapquest.com">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'
+            attribution: '{_T string="Map data ©" escape="js"} <a href="http://openstreetmap.org">{_T string="OpenStreetMap contributors" escape="js"}</a>, {_T string="Imagery ©" escape="js"} <a href="https://cartodb.com/attributions">CartoDB</a>'
         }).addTo(map);

         try {

#2

Updated by Al Bo almost 5 years ago

Bonjour,

Ca marche impeccable !

Merci !

#3

Updated by Johan Cwiklinski almost 5 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
#4

Updated by Johan Cwiklinski almost 5 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 100 to 0

Also available in: Atom PDF