Uncaught (in promise) ReferenceError: poly is not defined
at Object.getPin (index.js:1:259757)
at Object.addPin (index.js:1:259544)
at createMap (statistics.vue:23:11)
at statistics.vue:38:21
at chunk-FBYHIP7F.js:4075:88
at callWithErrorHandling (chunk-FBYHIP7F.js:1565:18)
at callWithAsyncErrorHandling (chunk-FBYHIP7F.js:1573:17)
at hook.__weh.hook.__weh (chunk-FBYHIP7F.js:4055:19)
at flushPostFlushCbs (chunk-FBYHIP7F.js:1731:41)
at flushJobs (chunk-FBYHIP7F.js:1769:5)
I get the mentioned error when I try to add a Pin to the map. Here is the code I use:
And this is the error message:
Any ideas?