DEV Community

Discussion on: Setup Google Map In Angular App (The Pro Way) Part 1

Collapse
 
devpato profile image
Pato • Edited

do you have a repo?
Have you tried steps 5 and 6?
Have you tried this?

TS error for the google declaration, that you should add to your tsconfig.app.json and tsconfig.spec.json this line "types": ["googlemaps"]

keep me posted

Collapse
 
pam81 profile image
Pamela

Hi Thanks for you reply. I had to mock the googlemap and I follow this github.com/ScottieR/angular-google...
and add in the karma file
files:[
"maps.googleapis.com/maps/api/js?ke...",
"src/app/test/google.api.mock.js"
],

Thread Thread
 
devpato profile image
Pato

so this solved your issue? correct?

Thread Thread
 
pam81 profile image
Pamela

yes!

Thread Thread
 
devpato profile image
Pato

cool! Thanks for sharing your solution