From 83b50de6232727f84c1211d1c4cf9ea299778833 Mon Sep 17 00:00:00 2001
From: Olivier Mehani <shtrom@ssji.net>
Date: Wed, 31 Aug 2016 22:20:53 +1000
Subject: [PATCH] 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 <shtrom@ssji.net>
---
mediagoblin/static/js/geolocation-map.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/mediagoblin/static/js/geolocation-map.js b/mediagoblin/static/js/geolocation-map.js
index 26d94c5..c30788f 100644
a
|
b
|
$(document).ready(function () {
|
30 | 30 | // Get a new map instance attached and element with id="tile-map" |
31 | 31 | var map = new L.Map('tile-map'); |
32 | 32 | |
33 | | var mqtileUrl = 'http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg'; |
| 33 | var mqtileUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; |
34 | 34 | var mqtileAttrib = '<a id="osm_license_link">see map license</a>'; |
35 | 35 | var mqtile = new L.TileLayer( |
36 | 36 | mqtileUrl, |
37 | | {maxZoom: 18, |
38 | | attribution: mqtileAttrib, |
39 | | subdomains: '1234'}); |
| 37 | {maxZoom: 18}); |
40 | 38 | |
41 | 39 | map.attributionControl.setPrefix(''); |
42 | 40 | var location = new L.LatLng(latitude, longitude); |