[OpenLayers-Users] Problems Displaying ScaleBar control

David Alda Fernandez de Lezea dalda at ikt.es
Tue Mar 22 10:15:37 EDT 2011


Hi again,

I've been googling a little bit. Besides the error shown before, I've tracked the error that I get from Firebug (Security error code: 1000) and noticed that has got something to do with the "Same Origin Policy" problem. The ScaleBar control is trying to modify/access some properties using the DOM, and we have in one server the openlayers code, and in another server we have the html that calls our openlayers code, so it seems that this could be the problem. If I remove this control from the list everything works fine in all browsers. A solution might be having the css and images for the ScaleBar control in the server that has the html file.

Just to let you know.
 
Regards,


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
··················································································

-----Mensaje original-----
De: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] En nombre de David Alda Fernandez de Lezea
Enviado el: lunes, 21 de marzo de 2011 16:59
Para: users at openlayers.org
Asunto: [OpenLayers-Users] Problems Displaying ScaleBar control

Hi list,

I've noticed some strange behaviour with ScaleBar control. Using IE or Safari, I can see the control, but if I use Firefox or Opera, it doesn't appear. When I try to use Chrome, it gives an error:

ScaleBar.js:571 Uncaught TypeError: Cannot read property 'length' of null

Why could be happening??

You can test this behaviour in the following url:

http://www.iktlan.net/mapa/index.html

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
··················································································
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list