Zoom to first layer on EDR (#1819)

This commit is contained in:
Benjamin Webb
2024-09-26 19:23:18 -04:00
committed by GitHub
parent 52bec0fa89
commit 6b91024aa5
@@ -139,7 +139,7 @@
if (!firstLayer) {
firstLayer = layer;
layer.on('afterAdd', () => {
zoomToLayers([layers])
zoomToLayers([layer])
if (!cov.coverages) {
if (isVerticalProfile(cov) || isTimeSeries(cov)) {
layer.openPopup();