Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We have a very rare scenario where we use views_geojson maps with a bounding box strategy.
This makes the loadend event fire twice: once with features, once without.
The provided patch checks if the layers currently has features (in the zoomtolayer javascript) and only continues if there are features. Which does make total sense, there is nothing to zoom without features anyways.
And it fixes our issue.
Comment | File | Size | Author |
---|---|---|---|
#1 | zoomtolayer-only-when-there-are-features-#2344127-1.patch | 611 bytes | batje |
Comments
Comment #1
batje CreditAttribution: batje commentedComment #2
PolThanks !