Skip to content

Commit d4170b4

Browse files
changes url for aprs tiles to the new subdomain
1 parent ed7d332 commit d4170b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/tracker.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ var plot_options = {
109109
var overlayAPRS = new google.maps.ImageMapType({
110110
getTileUrl: function(coord, zoom) {
111111
var n = Math.pow(2,zoom);
112-
return (coord.y<0 || coord.y>=n || zoom > 6) ? null : "http://habhub.org/tiles/aprs/tile_"+zoom+"_"+wrapTiles(coord.x,zoom)+"_"+coord.y+".png";
112+
return (coord.y<0 || coord.y>=n || zoom > 6) ? null : "http://" +
113+
['a','b','c'][Math.abs(coord.x+coord.y)%3] +
114+
".tiles.tracker.habhub.org/aprs/tile_" +
115+
zoom + "_" +
116+
wrapTiles(coord.x,zoom) + "_" +
117+
coord.y + ".png";
113118
},
114119
tileSize: new google.maps.Size(256,256)
115120
});

0 commit comments

Comments
 (0)