How to Plugin Cordova Google Maps in IONIC2


#1

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!


#2

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.


#3

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


#4

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)


#5

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


#6

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

Does anyone know any idea to do this ?


#7

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