Subscribe on changes!

Google map API .setMap() is not working.

avatar
Mar 24th 2022

Version

3.2.31

Reproduction link

github.com

Steps to reproduce

  1. First, put your Google map api key in src/utils/gmaps.js

  2. npm i, then: npm run serve

  3. When clicking on the map, the previous marker should disappear. But it doesn't. The exact same code work well in vue 2.

  4. In /src/components/GMap.vue line 75 Google Map Api .setMap() function is not working.

What is expected?

When clicking on the map, the previous marker should disappear

What is actually happening?

After every click a new marker is generated, but the previous one is not deleted. Google Map Api .setMap() function is not working.

avatar
Mar 24th 2022

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow. If this is a bug report, provide a reproduction that follows the instructions at https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro.

avatar
Mar 25th 2022

Hi, why do you consider this is not a bug ?