Skip to content

Commit

Permalink
Zoom to first layer on EDR (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben authored Sep 26, 2024
1 parent 52bec0f commit 6b91024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoapi/templates/collections/edr/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6b91024

Please sign in to comment.