[OpenLayers-Users] this.div.style error

Olivier Terral olivier at geomatic.ch
Wed Jun 20 02:18:32 PDT 2012


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
> Users at lists.osgeo.org
> 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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/58176986/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.gif
Type: image/gif
Size: 5116 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/58176986/attachment.gif>


More information about the Users mailing list