Hi, this has already been fixed - the offending change has been reverted.
Regards, Andreas. Ian Trotter wrote: > > Hi, > > > > The resolution of http://trac.openlayers.org/ticket/2258 seems to have > introduced a bug with the event-handling for markers. It seems that > the Marker.events property is no longer being set when a marker is > initialised. > > > > As an example, you can see that > http://openlayers.org/dev/examples/georss-markers.html no longer shows > the markers, with an error message that marker.events is null. > > > > I worked around the error message by explicitly adding events property > to the marker: > > > > marker.events = new OpenLayers.Events(marker, > marker.icon.imageDiv, null); > > > > before trying to register events: > > > > marker.events.register("mousedown", feature, markerClick); > > > > It seems that the events property of Marker is no longer being defined > in the constructor of the class. > > > > Is that intentional? > > > > - Ian > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev