Hi Robert,

Try to send us a small example ( a simple html page or an accessible Url ) about how we can reproduce the bug with OpenLayers only.

 If you facilitate the testing of a bug, you'll have more chances to have good and  quick answers to your problem.


Regards


Le 18 juin 2012 à 23:25, Robert Sanson a écrit :

I have a Web site built using GeoExt + OpenLayers, and I quite often get the following _javascript_ error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 18 Jun 2012 21:22:51 UTC


Message: 'this.div.style' is null or not an object
Line: 1256
Char: 9
Code: 0
URI: http://myserver/lib/OpenLayers/Layer.js


It comes from the getZIndex function:

/**
    * Method: getZIndex
    *
    * Returns:
    * {Integer} the z-index of this layer
    */    
   getZIndex: function () {
       return this.div.style.zIndex;
   },

I t happens when I reload some layers from a WKT source.

Can anyone suggest how to avoid this error?

Many thanks

Robert Sanson



This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Olivier Terral


 
GEOMATIC Ingénierie SA
Société du groupe Ringier
Chemin des Croisettes 26
1066 Epalinges
www.geomatic.ch
www.thevirtualcity.ch
Tél:: +41 (21) 651 30 00
Fax: +41 (21) 651 30 09




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

Reply via email to