Showing 2 changed files with 2 additions and 1 deletions
+1 -1
Nasal/maps/tiles.nas
... ...
@@ -7,7 +7,7 @@ var MapTiles = {
7 7
         m.display = m.device.display.display;
8 8
         m.tile_size = 256;
9 9
         m.maps_base = getprop("/sim/fg-home") ~ '/cache/maps';
10
-        m.makeUrl = string.compileTemplate('https://{server}/{type}/{z}/{x}/{y}.png{apikey}');
10
+        m.makeUrl = string.compileTemplate(data['tiles-template']);
11 11
         m.makePath = string.compileTemplate(m.maps_base ~ '/{server}/{type}/{z}/{x}/{y}.png');
12 12
         m.num_tiles = [
13 13
             math.ceil( m.device.data.mapsize[0] / m.tile_size ) + 1,
+1
zkv1000.nas
... ...
@@ -156,6 +156,7 @@ var init_props = func {
156 156
         server: 'maps.wikimedia.org',
157 157
         type:   'osm-intl',
158 158
         apikey: '',
159
+        template: 'https://{server}/{type}/{z}/{x}/{y}.png{apikey}',
159 160
     };
160 161
     foreach (var v; keys(tiles_defaults)) {
161 162
         var val = getprop('/sim/online-tiles-' ~ v);