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.
OK, so i'm using Openlayers to draw a polygon on a map for a geofield.
I can draw the polygon(s), no problem.
But, once I've drawn them, I don't have good edit control.
I can move the vertices around, and create new vertices, but I can't delete vertices or delete the polygon.
Is there something obvious I'm missing here?
Comment | File | Size | Author |
---|---|---|---|
#1 | openlayers-delete_polygon_vertices-2102103.patch | 899 bytes | AaronBauman |
Comments
Comment #1
AaronBaumanThis seems to be a bug, actually.
A few things are going wrong in openlayers_behavior_drawfeatures.js
1. $ is not defined in this context. should be jQuery instead.
2. this.selectControl is not defined
3. Openlayers ModifyControl handles deletion out of the box, there's no need for a handleKeypress callback
Attached patch resolved the issue for me.
Comment #2
PolThank you very much, committed!
Comment #4
PolSince this patch, I can't delete vertice in chrome, reverting the patch.
Comment #5
PolComment #6
PolThis patch is working, the problem was from Geofield, see #2169989: Add 'delete feature' ability.
Committed again.
Comment #7
Pol