0

GMaps - Makers are not beeing removed on max zoom condition

asked 2023-09-03 07:38:30 +0800

MarcosFavaretto gravatar image MarcosFavaretto
101

updated 2023-09-03 07:44:38 +0800

Hello community!

Using icon in Gmaker I noticed that in one specific occasion, the icon continues to be displayed to the user, even after removing all child components of Gmaps.

I created a Fiddle so you can check the behavior. The link is present on comments section, since the Forum is not allowing me to post it on description.

Steps to reproduce:

  1. After run the fiddle provided, zoom in on the Java icon to the fullest.
  2. Hit the "Move Marker" button.
  3. Slowly zoom out until you see another icon rendered.

After the third step, you will be able to notice that the new Marker is being created on Gmaps as expected. Thus, the old one is not being removed correctly.

Note that this only happens when you render a new marker with the maximum zoom on the old one. To reproduce, you also need to provide a custom icon for gmarker instead of the default one.

I didn't find out why it happens or if I am doing something wrong. I would like to know if someone already fixed it or if there is any way to avoid that problem.

delete flag offensive retag edit

Comments

https://zkfiddle.org/sample/1b5jnh4/1-Gmaps-Markers-are-not-beeing-removed-after-change-lat-lng (Fiddle)

MarcosFavaretto ( 2023-09-03 07:42:53 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2023-09-03 07:38:30 +0800

Seen: 5 times

Last updated: Sep 03

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More