[OpenLayers-Dev] Insert and delete features

Ringdahl Niklas Niklas.Ringdahl at sweco.se
Sat Feb 21 11:26:12 EST 2009


I posted this via Nabble, but I haven't seen it on the list yet, so I am
sorry if this means I'm double posting.

---

I am editing features in a Vector layer and discovered that there are
some gaps in the logic in Vector.js. It turns out that Jean-Christophe
posted on this a while ago, would it be possible to change Vector.js per
his request? It would improve the editing flow very much. Or should I
post a suggestion? We have been in contact with Tim Schaub on the
"deleted features" matter mentioned below, and I think there will be a
patch on that soon, but I am not sure about that.

I am quite new to the Open Source domain, so I am not sure of how I am
expected to act upon a change request. Shall I post a suggested new
version of Vector.js?

Best regards,
- Niklas

    jc A wrote:
    A remark about OpenLayers.Feature.Vector.state :

    In OpenLayers.Feature.Vector.initialize(..) Line ~50
    this.state should be initialized like :
    this.state = OpenLayers.State.UNKNOWN;

    Or, in the function toState(..) you should add a 'defaut:' at lines
~213 and ~234 to manage the case where : this.state is null

    ---

    And the last question :

    Is it possible today to not draw (hide) a  'deleted' feature ?
    I mean a feature where feature.state is OpenLayers.State.DELETE ?


    Regards.

    Jean-Christophe ALBERT



More information about the Dev mailing list