Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Exclude overzoom indicator for vectors. Fix bug with wms request

ZachTRicecec6db1896b6
diff --git a/web/js/layers/active.js b/web/js/layers/active.js
index 5425247d7..8852180ee 100644
--- a/web/js/layers/active.js
+++ b/web/js/layers/active.js
@@ -566,7 +566,7 @@ export function layersActive(models, ui, config) {
var matrixSet = layer.projections[proj].matrixSet;
- if (matrixSet !== undefined) {
+ if (matrixSet !== undefined && layer.type !== 'vector') {
var source = layer.projections[proj].source;
var zoomLimit = sources[source]
.matrixSets[matrixSet]
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 09758b41b..1decc2da9 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -383,11 +383,13 @@ export function mapLayerBuilder(models, config, cache, Parent) {
};
if (def.styles) { parameters.STYLES = def.styles; }
+ urlParameters = '';
+
date = options.date || models.date.selected;
if (day) {
date = util.dateAdd(date, 'day', day);
}
- urlParameters += '?TIME=' + util.toISOStringSeconds(util.roundTimeOneMinute(date));
+ urlParameters = '?TIME=' + util.toISOStringSeconds(util.roundTimeOneMinute(date));
var sourceOptions = {
url: source.url + urlParameters,