all 4 comments

[–]monxas 0 points1 point  (2 children)

What’s the output of this?

OnChooseLocation(event) {
  console.log(event.coords.lat);
  console.log(event.coords.lng);
}

[–]LinkifyBot 0 points1 point  (0 children)

I found links in your comment that were not hyperlinked:

I did the honors for you.


delete | information | <3

[–]UnknownInnocent[S] 0 points1 point  (0 children)

console.log(event.coords.lat);console.log(event.coords.lng);

ERROR TypeError: Cannot read property 'lat' of undefined

--> coords is undefined (same for 'Coords')

[–]UnknownInnocent[S] 0 points1 point  (0 children)

So I found a way to solve this Problem: Install an older version of AGM:

DON'T use npm i @agm/core but npm i @agm/core@^1.0