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.
The Geofield Component that comes with the Openlayers Geofield module does not properly handle deleting features.
If you add 2 points, then select one and press "Delete", both points are deleted.
Comment | File | Size | Author |
---|---|---|---|
#1 | openlayers_geofield_delete_single_features-2539384-1.patch | 1.82 KB | m.stenta |
Comments
Comment #1
m.stentaHere is a patch that fixes this.
I basically simplified the JS code. Previously, it was loading up all the features of the layer and deleting each of them. Now it only deletes the feature that you have selected.
Comment #2
PolComment #4
das-peter CreditAttribution: das-peter at Cando commented@m.stenta Looks good :) Thanks for the patch.
While testing the patch I found some other quirks with the geofield handling - fixed those as well.
Comment #5
m.stentaGreat! Thanks @das-peter and @Pol!