Created
March 1, 2017 15:58
-
-
Save Tuxdiver/a21fa596f3ff63c994fd9669be9ec75e to your computer and use it in GitHub Desktop.
WP-GPX-Maps.js: fix for https tiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- WP-GPX-Maps.js.orig 2017-03-01 16:31:40.303660175 +0100 | |
+++ WP-GPX-Maps.js 2017-03-01 16:32:28.992161214 +0100 | |
@@ -188,7 +188,7 @@ | |
map.mapTypes.set("OSM1", new google.maps.ImageMapType({ | |
getTileUrl: function(coord, zoom) { | |
- return "http://tile.openstreetmap.org/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
+ return "https://tile.openstreetmap.org/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
name: "OSM", | |
@@ -199,9 +199,9 @@ | |
map.mapTypes.set("OSM2", new google.maps.ImageMapType({ | |
getTileUrl: function(coord, zoom) { | |
if (hasThunderforestApiKey) | |
- return "http://a.tile.thunderforest.com/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
+ return "https://a.tile.thunderforest.com/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
else | |
- return "http://a.tile.opencyclemap.org/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
+ return "https://a.tile.opencyclemap.org/cycle/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
name: "OCM", | |
@@ -212,9 +212,9 @@ | |
map.mapTypes.set("OSM4", new google.maps.ImageMapType({ | |
getTileUrl: function(coord, zoom) { | |
if (hasThunderforestApiKey) | |
- return "http://a.tile.thunderforest.com/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
+ return "https://a.tile.thunderforest.com/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
else | |
- return "http://a.tile2.opencyclemap.org/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
+ return "https://a.tile2.opencyclemap.org/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
name: "OCM-Tran", | |
@@ -225,9 +225,9 @@ | |
map.mapTypes.set("OSM5", new google.maps.ImageMapType({ | |
getTileUrl: function(coord, zoom) { | |
if (hasThunderforestApiKey) | |
- return "http://a.tile.thunderforest.com/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
+ return "https://a.tile.thunderforest.com/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png?apikey=" + ThunderforestApiKey; | |
else | |
- return "http://a.tile3.opencyclemap.org/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
+ return "https://a.tile3.opencyclemap.org/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
name: "OCM-Land", | |
@@ -237,7 +237,7 @@ | |
map.mapTypes.set("OSM6", new google.maps.ImageMapType({ | |
getTileUrl: function(coord, zoom) { | |
- return "http://tile2.maptoolkit.net/terrain/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
+ return "https://tile2.maptoolkit.net/terrain/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
name: "MTK-Terr", | |
@@ -362,12 +362,12 @@ | |
if (!jQuery.isEmptyObject(waypoints)) | |
{ | |
- var image = new google.maps.MarkerImage('http://maps.google.com/mapfiles/ms/micons/flag.png', | |
+ var image = new google.maps.MarkerImage('https://maps.google.com/mapfiles/ms/micons/flag.png', | |
new google.maps.Size(32, 32), | |
new google.maps.Point(0,0), | |
new google.maps.Point(16, 32) | |
); | |
- var shadow = new google.maps.MarkerImage('http://maps.google.com/mapfiles/ms/micons/flag.shadow.png', | |
+ var shadow = new google.maps.MarkerImage('https://maps.google.com/mapfiles/ms/micons/flag.shadow.png', | |
new google.maps.Size(59, 32), | |
new google.maps.Point(0,0), | |
new google.maps.Point(16, 32) | |
@@ -613,7 +613,7 @@ | |
if (currentIcon == '') | |
{ | |
- currentIcon = "http://maps.google.com/mapfiles/kml/pal4/icon25.png"; | |
+ currentIcon = "https://maps.google.com/mapfiles/kml/pal4/icon25.png"; | |
} | |
var current = new google.maps.MarkerImage(currentIcon, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment