[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
Fri Jul 22 22:24:08 EDT 2011


Hi Volker,

>Just put this after OpenLayers.js is loaded:
>
>      OpenLayers.Map.prototype.getCurrentSize = function() {
>          var mapDiv = $(this.div);
>          return new OpenLayers.Size(mapDiv.width(), mapDiv.height());
>      }

Thanks for this solution.

It seems to work with jquery mobile beta2 as well.

Noli


More information about the Dev mailing list