[OpenLayers-Dev] OpenLayers.js (2.11 RC) and jquery.mobile-1.0b2pre.js (Beta2) - 'size' [null] is not an object.

Noli Sicad nsicad at gmail.com
Tue Jun 21 23:34:14 EDT 2011


Hi,

It seems that OpenLayers.js (2.11 RC) and jquery.mobile-1.0b2pre.js
(Beta2) has a problem i.e.  - 'size' [null] is not an object.

Is this error can be fixed in OpenLayers?

Or this is jquery-mobile problem?

Previous version of jquery-mobile < b1pre, OpenLayers.js is working perfectly.

This is the line: 1224 in OpenLayers.js
~~~~~~~
var schema={};this.readNode(data,schema);return
schema;},CLASS_NAME:"OpenLayers.Format.WFSDescribeFeatureType"});OpenLayers.Renderer=OpenLayers.Class({container:null,root:null,extent:null,locked:false,size:null,resolution:null,map:null,initialize:function(containerID,options){this.container=OpenLayers.Util.getElement(containerID);OpenLayers.Util.extend(this,options);},destroy:function(){this.container=null;this.extent=null;this.size=null;this.resolution=null;this.map=null;},supported:function(){return
false;},setExtent:function(extent,resolutionChanged){this.extent=extent.clone();if(resolutionChanged){this.resolution=null;}},setSize:function(size){this.size=size.clone();this.resolution=null;},getResolution:function(){this.resolution=this.resolution||this.map.getResolution();return
this.resolution;},drawFeature:function(feature,style){if(style==null){style=feature.style;}


TypeError: Result of expression 'size' [null] is not an object.

Thanks.

Noli


More information about the Dev mailing list