From: Olivier Mehani Date: Wed, 31 Aug 2016 12:20:53 +0000 (+1000) Subject: Use OSM tiles in Geolocation plugin #5466 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=441fee1a72a97fa4fedaf7f7e763501bfeb40ce5;p=mediagoblin.git Use OSM tiles in Geolocation plugin #5466 MapQuest recently disabled free-as-in-beer access to their map tiles, so let's switch to free-as-in-speech images. Signed-off-by: Olivier Mehani --- diff --git a/mediagoblin/static/js/geolocation-map.js b/mediagoblin/static/js/geolocation-map.js index 26d94c5d..c30788f7 100644 --- a/mediagoblin/static/js/geolocation-map.js +++ b/mediagoblin/static/js/geolocation-map.js @@ -30,13 +30,11 @@ $(document).ready(function () { // Get a new map instance attached and element with id="tile-map" var map = new L.Map('tile-map'); - var mqtileUrl = 'http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg'; + var mqtileUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var mqtileAttrib = 'see map license'; var mqtile = new L.TileLayer( mqtileUrl, - {maxZoom: 18, - attribution: mqtileAttrib, - subdomains: '1234'}); + {maxZoom: 18}); map.attributionControl.setPrefix(''); var location = new L.LatLng(latitude, longitude);