I have found a similar problem to Adorian using OL2.7. When I click on the
feature to delete it, the polygon disappears, but not the vertices. In the code
below, crops is a Vector polygon layer loaded from a geoJSON file:
var delf = new OpenLayers.Control.SelectFeature(crops, {onSelect:
funct
I happen to have a snippet handy:
function init(){
var layer = DEFINE SOME LAYER HERE!!!
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayers([layer, vlayer]);
var modifyTool = new OpenLayers.Control.ModifyFeature(vlayer);
var deleteTool = new OpenLayers.C
Hi Eric,
If i read you correctly the select feature control and the modify
> feature control are never activated at the same time. This should
> limit conflicts, but it's not enough apparently. When you select a
> feature for deletion, are the feature's vertices rendered?
NO. The vertexes appea
If i read you correctly the select feature control and the modify
feature control are never activated at the same time. This should
limit conflicts, but it's not enough apparently. When you select a
feature for deletion, are the feature's vertices rendered? If they are
it means the modify feature
Hi Eric,
I have created a toolbox with buttons outside of OL. The tools have two
states on and off (toggleControl).
for(key in controls)
{
var control = controls[key];
if(element.value == key && element.checked)
{
control.activate();
}
else
{
control.deactiva
Hi. Question: How do you distinguish that the user selects a feature
for deletion or modification? I'm trying to understand whether you
need two controls to achieve what you want - using a modify feature
control only might be sufficient and prevent potential problems
because of conflicts between th
Hi,
Thank you for your message. Yes it works, but...
I have discovered that this problem is in relation with the modify control I
use within the same application. If I rem line for declaring modify control
the delete function behaves OK. If I include it, then after delete the
vertexes remain. If
Hey-
Adorian Ardelean wrote:
> 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 i
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