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

It is not possible to open info window for marker anchor #35

Open
andrew-aladjev opened this issue Jul 8, 2024 · 0 comments
Open

It is not possible to open info window for marker anchor #35

andrew-aladjev opened this issue Jul 8, 2024 · 0 comments

Comments

@andrew-aladjev
Copy link

Operating system

Any

Browser Version

Any

How severe is the bug?

high

Bug description

In order to open InfoWindow we need to pass AdvancedMarkerElement instance to InfoWindow.prototype.open as anchor. It is possible to do it by using marker.markerView_, but it is not legal, this instance variable has dangling underscore.

Steps to reproduce

const marker = new Marker({
  map,
  position: {
    lat: 1,
    lng: 2,
  }
});
const infoWindow = new googleApi.InfoWindow({
  content: 'some content',
});
infoWindow.open(map, marker);

Console log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant