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

Change popup LatLng when calling setLatLng on its marker. #272

Closed
wants to merge 4 commits into from

Conversation

tjarratt
Copy link

It seems like the main use case for marker popups is to bind the location of the marker to the location of the marker. If the marker is moved, via setLatLng, then it stands to reason that the popup should be moved as well.

At least, that's my main use case for using popups. Is there any time when you wouldn't want a popup to move along with a marker when you call setLatLng?

Tim Jarratt added 4 commits August 31, 2011 14:35
It seems like the main use case for marker popups is to bind the location of the marker
to the location of the marker. If the marker is moved, via setLatLng, then it stands
to reason that the popup should be moved as well.
Dom elements in IE6 through IE8 do not have hasOwnProperty, so a lot of this will break
when calling hasOwnProperty on an object that is a dom element.
This breaks horribly in most major versions of IE.
@mourner mourner closed this in 873bf10 Dec 14, 2011
@mourner
Copy link
Member

mourner commented Dec 14, 2011

Sorry for not responding for so long, finally got to this... Merged manually.

@iZucken iZucken mentioned this pull request May 31, 2017
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

Successfully merging this pull request may close these issues.

2 participants