Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2016-08-31 22:20:53 +1000
committerOlivier Mehani <shtrom@ssji.net>2016-08-31 22:21:46 +1000
commit83b50de6232727f84c1211d1c4cf9ea299778833 (patch)
tree7ec7b1e977110791c1da2fcc35b2240448d5e73f
parentd1ac2d52fd8859c3f32fa38e4836ffe9615e5bba (diff)
Use OSM tiles in Geolocation plugin #5466bug5466-replace-mapquest
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 <shtrom@ssji.net>
-rw-r--r--mediagoblin/static/js/geolocation-map.js6
1 files changed, 2 insertions, 4 deletions
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 = '<a id="osm_license_link">see map license</a>';
var mqtile = new L.TileLayer(
mqtileUrl,
- {maxZoom: 18,
- attribution: mqtileAttrib,
- subdomains: '1234'});
+ {maxZoom: 18});
map.attributionControl.setPrefix('');
var location = new L.LatLng(latitude, longitude);