Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Maps on Dojox mobile view
    text
    copied!<p>The same question has been asked in <a href="https://stackoverflow.com/questions/6642788/how-do-i-add-a-google-map-to-a-dojox-mobile-view">this post</a>, but the accepted answer doesn't help (me, at least).</p> <p>I use dojox.mobile.View to display two views that look like <a href="http://demos.dojotoolkit.org/demos/mobileOpenLayers/demos.html" rel="nofollow noreferrer">this</a>. Everything works fine, except the map container doesn't get displayed correctly. It is shown as a small box on the top page. Do I miss something on the layout file? Thank you!</p> <pre><code>&lt;div id="view1" dojoType="dojox.mobile.View" selected="true"&gt; &lt;h1 dojoType="dojox.mobile.Heading"&gt;View 1&lt;/h1&gt; &lt;ul dojoType="dojox.mobile.RoundRectList"&gt; &lt;li dojoType="dojox.mobile.ListItem" icon="images/icon1.png" moveTo="view2" transition="slide"&gt;Go To View 2 &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="view2" dojoType="dojox.mobile.View" style="height:100%"&gt; &lt;h1 dojoType="dojox.mobile.Heading" back="View 1" moveTo="view1"&gt;View 2&lt;/h1&gt; &lt;div dojoType="dojox.mobile.RoundRect" id="map_canvas" style="width:100% !important;height:100% !important;"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Update:</strong></p> <pre><code>&lt;body style="visibility: visible;"&gt; &lt;div id="view1" class="mblView" selected="true" style="visibility: visible; width: 100%; height: 100%; top: 0px; left: 0px; display: none;" dojotype="dojox.mobile.View" widgetid="view1"&gt; &lt;div id="view2" class="mblView" style="visibility: visible; width: 100%; height: 100%; top: 0px; position: relative; left: 0px;" dojotype="dojox.mobile.View" widgetid="view2"&gt; &lt;h1 id="dojox_mobile_Heading_1" class="mblHeading mblHeadingCenterTitle" moveto="view1" back="View 1" dojotype="dojox.mobile.Heading" style="" widgetid="dojox_mobile_Heading_1"&gt; &lt;div id="map_canvas" class="mblRoundRect" style="width: 100% ! important; height: 100% ! important; position: relative; background-color: rgb(229, 227, 223); overflow: hidden;" dojotype="dojox.mobile.RoundRect" widgetid="map_canvas"&gt; &lt;div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0;"&gt; </code></pre> <p><a href="https://i.imgur.com/ENhvQ.png" rel="nofollow noreferrer">Firebug logs</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload