Skip to content

Commit 6b91024

Browse files
authored
Zoom to first layer on EDR (geopython#1819)
1 parent 52bec0f commit 6b91024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygeoapi/templates/collections/edr/query.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
if (!firstLayer) {
140140
firstLayer = layer;
141141
layer.on('afterAdd', () => {
142-
zoomToLayers([layers])
142+
zoomToLayers([layer])
143143
if (!cov.coverages) {
144144
if (isVerticalProfile(cov) || isTimeSeries(cov)) {
145145
layer.openPopup();

0 commit comments

Comments
 (0)