[OpenLayers-Users] this.div.style error

Robert Sanson Robert.Sanson at asurequality.com
Mon Jun 18 14:25:39 PDT 2012


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


More information about the Users mailing list