Hi list,
Hi friends,
i've got a sytleMap:
var style = new OpenLayers.StyleMap({
"default": {
pointRadius: 30,
externalGraphic: "${image}"
},
and i use new OpenLayers.Control.DrawFeature(layer,
OpenLayers.Handler.Point). How can i set the image attribute on draw
feature? If i try eventListeners: {"featuresadded": function(obj)
{obj.feature.attribute.image="n2.png";} it doesnt work. I have no idea why
not.
Anyone an idea?
Thanks a lot for any advise or part of a solution,
x_tls_x
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/dynamic-externalGraphic-image-on-Control-DrawFeature-tp5720739p5720739.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