Google maps using phonegap in android?

An Android PhoneGap maps tutorial is here .

Up vote 3 down vote favorite 1 share g+ share fb share tw.

I want to display the maps in android using phonegap. I copied the code shown in wiki.phonegap.com/w/page/16494764/PhoneG.... I am using phonegap.0.9.4 and android emulator 2.2. I tested the application in android device.

It is every time calling the fail method. Can any one tell me what the problem is or tell me where I can get a working application for displaying maps? Android phonegap link|improve this question edited Mar 6 at 0:10Ilmari Karonen6,0581716 asked Jun 14 '11 at 11:21K.

Himabindu5419 36% accept rate.

1 1) The phonegap example you reference uses static maps, needing a key. Paul B's answer refers to google maps jsapi v3 (no key needed - newer, better maps api). 2) You must enable location/GPS in AVD or device to get location.

– Libby Jun 14 '11 at 23:07.

An Android PhoneGap maps tutorial is here. An even more fully featured open source maps app is available on the Android Market here.

Thank you..It is working in browser. But I am not getting map in android device. I got the map using wiki.phonegap.com/w/page/16494764/….

But I don't know how to add the functionalities like zooming and adding balloons and address dialogues to the location. Those functionalities are there in two minute tutorial but it didn't work in my device. What may be the problem.

Can you please tell me – K. Himabindu Jun 22 '11 at 8:35 Is location/GPS enabled on your device from Settings -> Location? If so, can you explain in more detail how far you got into the tutorial and what looks different from the screen shots?

– Paul Beusterien Jun 22 '11 at 16:04 thank you for response. Yes I enabled Gps. I copied jquery.

Mobile javascript files and tmt4part1/src files,jquery.ui. Map files into my www folder and given script tags src pointing to that particular js. I got the first screen shot as shown,but when I click on map I am not getting map.. Himabindu Jun 23 '11 at 6:49 Here are some other things to check: Does the manifest file allow location?

Android.permission. ACCESS_FINE_LOCATION android.permission. ACCESS_COARSE_LOCATION What's on map page (blank screen, error msg, or?

) Check DDMS after clicking on small map? Verify GPS is working by loading maps.google.com in browser and enable location. Add alert() here to confirm change page is happening: $('#map_square').

Click( function() { $.mobile. ChangePage('#page-map', 'slide'); }); – Paul Beusterien Jun 23 '11 at 18:51 yes..that application is working. When I am tapping on refresh or map some times it is asking complete this task using browser,dolphin browser one more option.

When I click on browser it is opening maps.google.com through browser. – K. Himabindu Jun 27 '11 at 11:37.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions