[OpenLayers-Users] Add a label on an Open Layers feature dynamically
thanili
ailiop at ics.forth.gr
Thu Mar 13 04:22:55 PDT 2014
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.
More information about the Users
mailing list