Thanks Arnd,

i am searching something like the second example you have attached.

in my case the shapes are drawn and subsequently selected (if user clicks)
dynamically, so i will have to adapt it in my function:

addLabelFeatureControl.events.register("featurelabeled", this, function(e) {
        var tempfeature = modifyFeatureControl.selectFeature(e.feature);       
        ....
        modifyFeatureControl.selectControl.select(e.feature);
        modifyFeatureControl.activate();
        drawControl.deactivate();
    });
    



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Add-a-label-on-an-Open-Layers-feature-dynamically-tp5128562p5128747.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to