Has anyone got this working recently?
I used this tutorial but the furthest I got was with ionic-google-maps-starter and I get a blank white screen. I tried several fixes from google but end up breaking them and need to start again.
Any pointers?
Thanks
Thanks.
I got it working, I used the article from josh morony
Then implemented this fix found here
I solved this, here is what you have to do:
npm install @types/googlemaps --save-dev
<script src="http://maps.google.com/maps/api/js?key=XXXXX"></script> in index.html
declare module 'googlemaps'; into declarations.d.ts
import {googlemaps} from 'googlemaps'; in class where you using maps
Then had to take the imports from the official docs and add them to the home.ts as it was complaining about missing modules on build.
https://ionicframework.com/docs/native/google-maps/
Bit tricky but works like a charm.
1 Like