[OpenLayers-Users] Problems with marker.events.register and firefox

David Alda Fernandez de Lezea dalda at ikt.es
Tue Feb 16 05:48:41 EST 2010


Hi, 

I'm having some issues with mousedown or click events associated to a marker. The problem is that it works on Chrome and IE8/IE7 but not in Firefox. Here is the code I use:

marker.events.register('click', objectArray[i], function(evt){
	var coords = this.getCoords().split(","); //<p style="text-align: 'center'; font: '16pt'; courier; color: 'blue'">
	var labelColor = this.getLabelColor().split(",");
	var innerHtml = '<p style="color: #' + RGB2HexColor(labelColor[0],labelColor[1],labelColor[2]) + ';font-family: verdana;font-size:' + this.getLabelSize() + 'px;">';
	map.addPopup(new OpenLayers.Popup.FramedCloud("id", new OpenLayers.LonLat(coords[0],coords[1]),null,innerHtml + this.getLabelText() + "</p>",evt.object.icon,true),true);
});

Any ideas?

Tested in Firefox 3.6, 3.5.7, 3.0.16 and not working.

Is there something special that I have to configure?
 
Thanks.
 
Un saludo,
 
··················································································

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··················································································
Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
··················································································
email: dalda at ikt.es                                web: www.ikt.es
··················································································



More information about the Users mailing list