Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-02 Thread Max Stephan
Hi Alexandre, good idea. I´m now assigning an attribute to the feature I´ve added via the function that is triggered when a feature has been added. It contains a hexadecimal-color (depending on the colorvalue that is chosen in dropdown-menu). In the styleMap I define the fillColor as

[OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Max Stephan
Hi list, I´m actually implementing a drawfeature-control for my web-GIS. Everything´s working fine so far but now I want to add a little more functionality: - the user should be able to specify the appearance of the features he´s adding. This shall only have an effect on the features he´s adding

Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Alexandre Dube
Hi Max, Here's an old demo that could help you for some of your needs : http://dev4.mapgears.com/bdga/bdgaWFS-T.html Simply click on a feature. This demonstrate a way to edit feature's attributes in a form. If your data is stored in a DB, you don't need to take care of the id

Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Max Stephan
Hi Alexandre, I got it working now. The Problem was that in the function that was triggered by the featureadded-event I tried something like feature.id and not evt.feature.id. I registered the event via drawFeatureControlName.events.register(featureadded, ' ' , function). But, as always, one