Hi,<br><br>I'm having a problem with Firefox by changing the icons in a GeoRSS layer. <br><br>This is my code:<br><br>...<br><br>var rss_layer= new OpenLayers.Layer.GeoRSS(...);<br>for(var f=0; f<rss_layer.features.length; f++){ <br>
var feature = rss_layer.features[f];<br> var size = new OpenLayers.Size(21,25);<br> var offset = new OpenLayers.Pixel(-(size.w)/2, -(size.h));<br> var icon = new OpenLayers.Icon('js/mfbase/openlayers/img/marker.png',size,offset);<br>
<br> var newdata = feature.data;<br> newdata.icon = icon;<br> var newfeature = new OpenLayers.Feature(rss_layer, feature.lonlat, newdata);<br> <br> rss_layer.removeMarker(feature.marker);<br>
var marker = newfeature.createMarker();<br> marker.events.register('click', newfeature, rss_layer.markerClick);<br> rss_layer.features[f] = newfeature; <br> rss_layer.addMarker(marker);<br>
}<br><br>...<br><br>In Internet Explorer there is no problem. When the marker icon changes and I click on the marker, the popup appears regularly.<br><br>In Firefox however the popup does not appear, the 'click' event is not captured.<br>
<br>Can you help me please?<br><br><br>Regards,<br><br> Tobia Di Pisa<br>