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

Andreas Hocevar ahocevar at opengeo.org
Tue Jul 12 06:57:46 EDT 2011


Oh, you have that in the stylesheet already (like in the mobile-jq
example). Well, in this case I guess the reason for the example and
your applications not working is API changes in JQuery Mobile.

Further investigations and example patches are welcome of course.

Andreas.

On Tue, Jul 12, 2011 at 12:21 PM, Noli Sicad <nsicad at gmail.com> wrote:
> Is this not the size?
>
> #mappage, #mappage .ui-content, #map {
>    width: 100%;
>    height: 100%;
> }
>
> So, where will we put this size / "style" ?
>
> style="width:100%;height:100%;"
>
> Noli
>
> On 7/12/11, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>> 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.
>>
>> This only means that the map container does not have a size, probably
>> because it is a sub-element of a jqmobile page. Adding a
>>
>> style="width:100%;height:100%;"
>>
>> attribute to the map div may help.
>>
>> Andreas.
>>
>>>
>>> OpenLayers.js:1234TypeError: Result of expression 'size' [null] is not
>>> an object.
>>>
>>> This is line 1234 (below)
>>>
>>> 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;}
>>>
>>> Noli
>>>
>>> On 7/12/11, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>>>> It also doesn't mean that jQuery is broken. It only means that the
>>>> example does not work with later versions of jQuery than the one used
>>>> in the example.
>>>>
>>>> Andreas.
>>>>
>>>> On Tue, Jul 12, 2011 at 11:35 AM, Noli Sicad <nsicad at gmail.com> wrote:
>>>>> Hi Andreas,
>>>>>
>>>>> It is not OpenLayers that is broken for sure.
>>>>>
>>>>> It is jQuery mobile that is broken.
>>>>>
>>>>> I like to see another OpenLayers and jQuery mobile project that is
>>>>> working.
>>>>>
>>>>> Noli
>>>>>
>>>>>
>>>>> On 7/12/11, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>>>>>> Hi Noli,
>>>>>>
>>>>>> the subject of this thread adds a lot of drama to to the content that
>>>>>> is not actually there. So I changed the subject. Anybody is welcome to
>>>>>> fix the mobile-jq example. A non-working example does not mean that
>>>>>> OpenLayers is broken.
>>>>>>
>>>>>> Regards,
>>>>>> Andreas.
>>>>>>
>>>>>> On Tue, Jul 12, 2011 at 10:43 AM, Noli Sicad <nsicad at gmail.com> wrote:
>>>>>>> Hi Andreas,
>>>>>>>
>>>>>>> I just tested the official jQuery Mobile example in OL 2.11 RC1.
>>>>>>>
>>>>>>> It is not working with the beta1 jQM release.
>>>>>>>
>>>>>>> You can download.
>>>>>>>
>>>>>>> 1.I am using mobile-jq.html in OpenLayers-2.11-rc1.tar.gz
>>>>>>> http://www.openlayers.org/download/
>>>>>>>
>>>>>>> 2. jQuery Mobile --- Zip File: jquery-mobile-1.0b1.zip (JavaScript,
>>>>>>> CSS, and images)
>>>>>>> http://jquerymobile.com/download/
>>>>>>>
>>>>>>> 3. jQuery 1.6.2
>>>>>>> http://docs.jquery.com/Downloading_jQuery
>>>>>>>
>>>>>>> The jquery mobile 1.0b1pre is working after this version. It is not
>>>>>>> working.
>>>>>>>
>>>>>>> Noli
>>>>>>>
>>>>>>>
>>>>>>> On 7/12/11, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>>>>>>>> Can we have a link to an example that shows the issue, which uses
>>>>>>>> unminified versions of both OpenLayers and jQuery? This will make it
>>>>>>>> easier to locate the issue.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Andreas.
>>>>>>>>
>>>>>>>> On Mon, Jul 11, 2011 at 5:43 AM, Noli Sicad <nsicad at gmail.com> wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I like to inform everybody that the current and future releases of
>>>>>>>>> jQuery Mobile will not work with OL until this issue is resolved.
>>>>>>>>>
>>>>>>>>> https://github.com/jquery/jquery-mobile/issues/search?q=OpenLayers
>>>>>>>>>
>>>>>>>>> If you know what is causing the problem, please let us.
>>>>>>>>>
>>>>>>>>> Noli
>>>>>>>>> _______________________________________________
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev at lists.osgeo.org
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Andreas Hocevar
>>>>>>>> OpenGeo - http://opengeo.org/
>>>>>>>> Expert service straight from the developers.
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> Dev at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Andreas Hocevar
>>>>>> OpenGeo - http://opengeo.org/
>>>>>> Expert service straight from the developers.
>>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Andreas Hocevar
>>>> OpenGeo - http://opengeo.org/
>>>> Expert service straight from the developers.
>>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>>
>>
>>
>>
>> --
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.
>>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Dev mailing list