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

MouseOver not working properly? #9

Open
cariacou opened this issue Nov 13, 2016 · 1 comment
Open

MouseOver not working properly? #9

cariacou opened this issue Nov 13, 2016 · 1 comment

Comments

@cariacou
Copy link

cariacou commented Nov 13, 2016

I played around with semicircles and I like it a lot.
One issue I noticed though are the popups. While popups on a click work fine, mouse over popup only work for full circles.
If the circle is anything but 360 degrees, the only place where the pop up shows when using mouseover is the center of the circle.

"Mouseover" behaves as expected. "Mouseout" seems to be the troublemaker.

Anyone has an idea of what's going on?

// After setting up a semicircle marker, here is the mouseover activation
marker.on('mouseover', function (e) {
    this.openPopup();
});
marker.on('mouseout', function (e) {
    this.closePopup();
});
@jieter
Copy link
Owner

jieter commented Nov 13, 2016

Can you make a jsfiddle/leaflet-playground demonstrating the issue?

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

2 participants