Skip to content

Instantly share code, notes, and snippets.

@Tuxdiver
Tuxdiver / WP-GPX-Maps.js
Created March 1, 2017 15:58
WP-GPX-Maps.js: fix for https tiles
--- 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),