Skip to content

Commit e303932

Browse files
author
bastien
committed
Merge branch 'master' of github.com:GeotrekCE/Geotrek-mobile
2 parents 4e891c6 + 82ca4f0 commit e303932

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

app/scripts/map/mapFileSystemService.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ geotrekMap.service('mapFileSystemService',
77
function ($q, $cordovaFile, logging, utils, settings) {
88

99
this.getGlobalTileLayerURL = function() {
10-
return [
11-
settings.remote.LEAFLET_BACKGROUND_URL,
12-
settings.device.LEAFLET_BACKGROUND_URL
13-
];
10+
return settings.remote.LEAFLET_BACKGROUND_URL.concat(settings.device.LEAFLET_BACKGROUND_URL);
1411
};
1512

1613
this.downloadGlobalBackground = function(url, progress, forceDownload) {

app/scripts/map/mapRemoteService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ geotrekMap.service('mapRemoteService', ['$q', '$localStorage', 'settings', funct
1212
}
1313

1414
this.getGlobalTileLayerURL = function() {
15-
return [settings.remote.LEAFLET_BACKGROUND_URL];
15+
return settings.remote.LEAFLET_BACKGROUND_URL;
1616
};
1717

1818
// We don't have to download Map Background in Remote version, only for device offline mode

app/scripts/settings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ geotrekAppSettings.constant('globalSettings', {
3939
GLOBAL_MAP_DL_TILES_ZOOM: 12,
4040
GLOBAL_MAP_DEFAULT_MIN_ZOOM: 8,
4141
GLOBAL_MAP_DEFAULT_MAX_ZOOM: 16,
42-
BACKGROUND_URL: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
42+
BACKGROUND_URL: ['http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'],
4343
GLOBAL_MAP_ATTRIBUTION: '(c) osm',
4444
TREK_COLOR: '#aec900',
4545
HIGHLIGHT_DETAIL_LINEAR: false,
@@ -198,7 +198,7 @@ geotrekAppSettings.constant('globalSettings', {
198198
LOG_POOL_TIME: LOG_POOL_TIME,
199199
LOGS: LOGS,
200200
POI_ALERT_RADIUS : POI_ALERT_RADIUS,
201-
LEAFLET_BACKGROUND_URL: CDV_ROOT + '/' + RELATIVE_TILES_ROOT + '/{z}/{x}/{y}.png'
201+
LEAFLET_BACKGROUND_URL: [CDV_ROOT + '/' + RELATIVE_TILES_ROOT + '/{z}/{x}/{y}.png']
202202
},
203203
leaflet: leaflet_conf,
204204
filters: {
@@ -265,4 +265,4 @@ geotrekAppSettings.constant('globalSettings', {
265265

266266
return deferred.promise;
267267
}
268-
}]);
268+
}]);

0 commit comments

Comments
 (0)