Last active
October 15, 2016 10:36
-
-
Save antoinecourtin/4caf82e508c61976885cc789bca4be2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Depuis le 11 juillet, Mapquest ne fonctionne plus ce qui pose soucis pour ceux utilisent Bootleaf. | |
##Pour ça, il faut changer l'appel à un autre maplayers. | |
### Procédure | |
* Se rendre dans le répertoire suivant : /assets/js et ouvrir le fichier app.js | |
* Modifier 3 parties du code | |
* Ligne 122 | |
var cartoLight = L.tileLayer("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png", { | |
maxZoom: 19, | |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://cartodb.com/attributions">CartoDB</a>' | |
}); | |
var usgsImagery = L.layerGroup([L.tileLayer("http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}", { | |
maxZoom: 15, | |
}), L.tileLayer.wms("http://raster.nationalmap.gov/arcgis/services/Orthoimagery/USGS_EROS_Ortho_SCALE/ImageServer/WMSServer?", { | |
minZoom: 16, | |
maxZoom: 19, | |
layers: "0", | |
format: 'image/jpeg', | |
transparent: true, | |
attribution: "Aerial Imagery courtesy USGS" | |
})]); | |
* Ligne 420 | |
map = L.map("map", { | |
zoom: 10, | |
center: [40.702222, -73.979378], | |
layers: [cartoLight, markerClusters, highlight], | |
zoomControl: false, | |
attributionControl: false | |
}); | |
* Ligne 534 | |
var baseLayers = { | |
"Street Map": cartoLight, | |
"Aerial Imagery": usgsImagery | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merci :-) !