简体   繁体   中英

Using Google Maps API with PhoneGap

I'm looking to design an app for use on both iOS & Android. It will have a few tabs, with one tab dedicated to navigation. I'm hoping to use the Google Maps API to run the map, which will include basic mapping features such as route planning.

I've done some research into PhoneGap and from what I can gather I can use web technologies (HTML, Javascript etc.), in which I already have a proficiency, to build the app, which I can then package into an iOS and/or Android app.

So if I went ahead with using phone gap, could I use the Google Maps Javascript API to build the navigation part of the app and then use PhoneGap to package it into an iOS/Android application?

The beauty of cordova is that you always have good plugins which are relatively simple to install and use.One of the plugins available for using google map in cordova apps is given below

https://github.com/mapsplugin/cordova-plugin-googlemaps

However you can also go ahead using the Google maps javascript API in cordova to build the navigation part of your application. I recently used this in my cordova app and it worked very well. I have used the features of Google maps like navigation, adding custom markers, place auto complete etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM