[OpenLayers-Dev] mobile-jq example does not work with current jQuery Mobile (was: Current and Future jQuery mobile will not work with OpenLayers.)

Noli Sicad nsicad at gmail.com
Tue Jul 12 08:10:47 EDT 2011


Hi Eric,

> On Tue, Jul 12, 2011 at 12:05 PM, Noli Sicad <nsicad at gmail.com> wrote:
>> I got this same error (below)  in my 2 other jquery mobile projects
>> aside from the mobile-jq example from OpenLayers.
>>
>> OpenLayers.js:1234TypeError: Result of expression 'size' [null] is not
>> an object.
>
> Have you tried using window.onload = function() {} as opposed to
> $(document).ready(function() {}) ?

In mobile-jq.js, changing  $(document).ready(function() {} to
window.onload = function() {}
partial work. The "Layer" is not working, the sprinter makers are all
question mark, Locate is working. Search is partial working i.e.
search results are displaying, but not displaying in mapcanvas, error.

Noli


More information about the Dev mailing list