vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.86k stars 8.36k forks source link

Google map API .setMap() is not working. #5621

Closed RemiC2care closed 2 years ago

RemiC2care commented 2 years ago

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.

posva commented 2 years ago

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.

RemiC2care commented 2 years ago

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