[OpenLayers-Users] delete feature & vertexes

Adorian Ardelean mynature at gmail.com
Mon Aug 4 06:43:26 EDT 2008


Hi,

After upgrading to OL 2.6, delete feature function does not work correctly:
when a polygon or polyline is removed, the lines that define the disappear,
but the vertexes not (the vertexes appear as the entity is selected). The
code worked flawlessly in previous version. Is something that I have to be
aware and/or modify?

declaration of control
deletefeature: new
OpenLayers.Control.SelectFeature(vectors,{onSelect:deleteFeature})

delete function
function deleteFeature(geometry)
{
  this.layer.removeFeatures(geometry);
}

Any hint that may solve this issue is appreciated,
Adorian

-- 
Dr. Adorian Ardelean
coordinator of myNature Project

proiectul myNature
str. Rascoala din 1907 nr 12
Timisoara 300523
Romania

http://mybiosis.info/nature/portal.php?pagename=firstpage [a Romanian
biodiversity-database]
http://mybiosis.info/nature/portal.php?pagename=adorian [CV]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080804/fdb58c8f/attachment.html


More information about the Users mailing list