Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: Google-Map doesn't work with Phonegap
    primarykey
    data
    text
    <p>Iam trying to get Android's Google-Map.api to work with Phonegap. I can't figure out the problem though. I tried everything so far. Please check my code. I do not get any errors and I also included jQueryMobile. Apologies for a messy code.</p> <p>Index.html: -including all kind of stuff-</p> <p>Google.html:</p> <pre><code> &lt;body&gt; &lt;div data-role="page" id="foo" data-theme="c"&gt; &lt;div data-role="content"&gt; &lt;div id="map_canvas"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript" src="googlemap.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function onDeviceReady() { var map = new GoogleMap(); map.initialize(); } &lt;/script&gt; </code></pre> <p>googlemap.js is the same as seen in this tutorial: <a href="http://www.christianengvall.se/phonegap-and-google-maps/" rel="nofollow">christianengvall.se</a></p> <p>The anchor hypertext reference to Google.html includes a ref="external" attribut. I don't know if it is important or not.</p> <p>I also added the whitelists in res/xml/cordova.xml (up-2-date?)</p> <p>My manifest file has all permissions android probably has. (temporarily)</p> <p>When I run/debug this page on a real device (Samsung Galaxy S3) I get a white screen.</p> <p>A possible problem could be the data-role attribut of Google.html. Maybe there is something like data-role="mapload".</p> <p>If you need further information please ask me.</p> <p>//Edit</p> <p>It still doesnt work. I found another solution though which is a big mess. If somebody is able to upload a good code please go for it</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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