Restore Maxar imagery layers using masked urls

(cherry pick of #7356)
This commit is contained in:
Bryan Housel
2020-02-14 14:51:03 -05:00
parent d200d0fce2
commit 086cade061
4 changed files with 780 additions and 7665 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { json as d3_json } from 'd3-fetch';
import { t } from '../util/locale';
import { geoExtent, geoSphericalDistance } from '../geo';
import { utilAesDecrypt } from '../util/aes';
import { utilDetect } from '../util/detect';
@@ -33,7 +34,7 @@ export function rendererBackgroundSource(data) {
var name = source.name;
var description = source.description;
var best = !!source.best;
var template = source.template;
var template = source.encrypted ? utilAesDecrypt(source.template) : source.template;
source.tileSize = data.tileSize || 256;
source.zoomExtent = data.zoomExtent || [0, 22];