Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Advanced Marker position is not correct when zooming in/out #666

Open
southxzx opened this issue Jan 15, 2025 · 1 comment
Open

[Bug] Advanced Marker position is not correct when zooming in/out #666

southxzx opened this issue Jan 15, 2025 · 1 comment
Labels
needs more info Item needs further input from the creator

Comments

@southxzx
Copy link

southxzx commented Jan 15, 2025

Description

I noticed that the Advanced Marker position is not correct when I try to zoom in/out. The more I zoom out the more it goes far from the position

Even though, the Marker was still working as expected when zooming in/out.

image
image

Steps to Reproduce

    <AdvancedMarker
      position={new google.maps.LatLng(10.xxxxx, 106.xxxxx)}
      clickable={true}
    >
      <div onClick={handleClick}>
        <Pin />
      </div>
    </AdvancedMarker>

Environment

  • Library version: 1.4.2
  • Google maps version: weekly
  • Browser and Version: Latest
  • OS: Mac OS

Logs

No response

@southxzx southxzx added the bug Something isn't working label Jan 15, 2025
@usefulthink
Copy link
Collaborator

Can you do me a favor and check what you can see if you add a background-color to the div in your marker?

Also, I'm not really sure what will happen with both the div AND Pin element, that's rather unusual, you should use either a Pin or some custom HTML.

@usefulthink usefulthink added needs more info Item needs further input from the creator and removed bug Something isn't working labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Item needs further input from the creator
Projects
None yet
Development

No branches or pull requests

2 participants