That kind of worked. I have no errors in the CLI at startup, and at runtime it did ask me if I want to share my location (progress). But I get this error when I try load the page:
Unhandled Promise rejection: google is undefined ; Zone: angular ; Task: Promise.then ; Value:
TypeError: google is undefined
typings ERR! message Unable to find "google.maps" ("npm") in the registry.
typings ERR! message However, we found "google.maps" for 1 other source: "dt"
typings ERR! message You can install these using the "source" option.
So I ran:
typings install dt~google-maps --global
app-base-dir>typings install dt~google-maps --global
typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c21a2d49821b1a7d882b85e72255cdcf1532d1a3/googlemaps/google.maps.d.ts" during installation from "google-maps" (main)
google-maps
└── (No dependencies)
The problem seems that google api is not loaded by the time the code is checking google.map.
I don’t see what you have put in index.html here.Please mention the entire script tag here so that I can have look on it and ask you to correct if required.
Here is my body of my index.html with my script's tags @toanuranjans
<body>
<!-- Ionic's root component and where the app will load -->
<ion-app></ion-app>
<script src="cordova.js"></script>
<script src="build/polyfills.js"></script>
<script src="build/main.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
</body></html>