Skip to content

Commit

Permalink
Use https compatible names for GPS tile servers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 5, 2017
1 parent df17b99 commit 757ef87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/assets/leaflet/leaflet.osm.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
L.OSM.GPS = L.OSM.TileLayer.extend({
options: {
url: document.location.protocol === 'https:' ?
'https://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
'http://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
'https://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
'http://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
maxZoom: 20,
subdomains: 'abc'
}
Expand Down

0 comments on commit 757ef87

Please sign in to comment.