Skip to content

Commit

Permalink
work-around for mapquest apocalypse
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Aug 4, 2016
1 parent 37c1d9e commit f455a8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/views/search/_map_core_leaflet.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ var dx = <%= j dx %>;
var dy = <%= j dy %>;
var map = L.map(name).fitBounds([[x1-dx,y1-dy],[x2+dx,y2+dy]]);

var mapquest = 'http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png';
var subdomains = ['otile1','otile2','otile3','otile4'];
var attrib = '<a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> data, <a href="http://www.mapquest.com/" target="_blank">MapQuest-OSM</a> tiles.';
var mapquest = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var attrib = '©<a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors';
L.tileLayer(mapquest, {
attribution: attrib,
subdomains: subdomains,
maxZoom: 18
maxZoom: 19
}).addTo(map);
map.attributionControl.setPrefix('<a href="http://leaflet.cloudmade.com/">Leaflet</a>');
var marker = null;
Expand Down

0 comments on commit f455a8f

Please sign in to comment.