Hi Eric,

Eric Lemoine wrote:
>>
>>   I tried to clone the feature + fid before modifications, then on
>> cancel destroy the original feature and add the clone but it's obviously
>> wrong to do so since it becomes unbound to its source.
>>     
>
> What do you mean by "becomes unbound to its source"? I'd tend to think
> that cloning feature+fid is a good solution...
>
>   

Yeah, it's not very clear.  What I meant is if I clone the feature, 
modify the original then "cancel" --> if I destroy the original and 
addFeature(clone), the clone becomes independent of the other features, 
i.e. it was not added from a getFeature request, but manually.

Even when explaining it, it doesn't make much sense.  It shouldn't 
matter "how" a feature is added to a layer IMO.  Maybe I did something 
wrong again.  I should make a sample and share it.

I'll let you know when I'm done.

Thanks

Alexandre

-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to