remove eventslistener and try

layer.events.on({"featuresadded" : bla,
                          scope : this});
function bla() {
   alert('bla');
}

if the featuresadded event is still not called, can you make sure that you are adding the features to the same vector layer , where you registeryour events?

Regards
Moataz

x_tls_x wrote:
Hi friend,

thanks for your post. I tried that:
var layer = new OpenLayers.Layer.Vector("layer", {
        styleMap: layerStyle,
        eventListeners: {
                "featuresadded": alert("added")
                
        }
});


ok, but how can a adress the layer.features array right? What should i do
with the eventlistener featuresadded? I test it with the firebug console
after the features (points) are added and i can see my points at the map-->
but zero features

please help me. thanks for any advise.
x_tls_x

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to