How to Plugin Cordova Google Maps in IONIC2

Hi guys!
i need help for building maps in my app.
using cordova plugin google maps!
anyone have one tutorial for solve my problem?
Ty alot!

the user @joshmorony post a very good tutorial about it, take a look, and making a free advertisement, he also has a very good book about Ionic 2, I bought a copy and do not regret.

1 Like

Ty bro.
but i use version beta@22, this tutorial dont work in this version. what version beta u use?

Edit: fuck, now I saw that you are talking about the cordova, I’m sorry, I made a big mess here.


2.0.0-beta.25

but what dont work? the connectivity service?

It in fact helps to make organized all the thing, but can be used without. Put the link to Google Maps directly to www/index.html (https://github.com/driftyco/ionic-conference-app/blob/master/www/index.html), and using it this way (https://github.com/driftyco/ionic-conference-app/blob/master/app/pages/map/map.js)

1 Like

when use this:
"let latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);"
i received: “EXCEPTION: ReferenceError: google is not defined”

Yupp same error beta.25
Error TS2304: Cannot find name ‘google’.

Does anyone know any idea to do this ?

May indicate take a look at Native, here it shows that it is available.

https://github.com/driftyco/ionic-native/blob/master/src/plugins/googlemaps.ts