rpsingh63 / mobile-web-development-with-phonegap

Automatically exported from code.google.com/p/mobile-web-development-with-phonegap
0 stars 0 forks source link

TMT4 part 1. android doesn't load map #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Helle, I'm having a problem with tmt4 part 1.

Everything works fine on the computer, but as soon as I put it on my phone, it 
doesn't do anything. I get a simple screen with everything on it, exept the 
sqaure map. It does work after clicking the link in the footer, but is there 
any way to bypass this?

(PS: operating system= android and phone= samsung galaxy ace)

Original issue reported on code.google.com by mark1...@live.nl on 20 Oct 2012 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by paul.beu...@gmail.com on 31 Oct 2012 at 6:57

GoogleCodeExporter commented 9 years ago
I'm not sure exactly what you are describing. Are you saying the full app works 
on the AVD?  But on real device, no small square on first page, but after 
clicking the link it goes to the full page map, including directions?

You can change the html etc to bypass anything.. not sure what you'd like to 
accomplish. If you still have an issue, please check device network settings, 
and also include any errors from the logcat output.

Original comment by libby.ba...@gmail.com on 31 Oct 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Hello,

I follow the full tutorial, but I get an empty square. The map never loads, 
neither on avd nor in real phone. I've tried using the mapapp.complete.js 
instead of copying and paste the code in the website to the mapapp.js file and 
I get the same issue. I've tried creating a project for Android 4.2 and another 
with android 2.3.3 and it happens the same. 

The modification I do to the default project are: 

 - Put the downloaded files in the tutorial into the assets/www folder
 - Modify index.hmtl with:

<script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script>
 <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script>
<script type="text/javascript" charset="utf-8" 
src="mapapp.complete.js"></script>

I run an I get an empty square.

Any suggestion?

Original comment by fernando...@gmail.com on 19 Mar 2013 at 11:11

GoogleCodeExporter commented 9 years ago
Are you including the google maps api from part 2 of the tutorial:

<script type="text/javascript" 
src="http://maps.google.com/maps/api/js?sensor=false"></script>

Original comment by libby.ba...@gmail.com on 19 Mar 2013 at 11:52