Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Last active October 15, 2016 10:36
Show Gist options
  • Save antoinecourtin/4caf82e508c61976885cc789bca4be2a to your computer and use it in GitHub Desktop.
Save antoinecourtin/4caf82e508c61976885cc789bca4be2a to your computer and use it in GitHub Desktop.
#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: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <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
};
@zone47
Copy link

zone47 commented Oct 15, 2016

Merci :-) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment