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

Leaflet Click Issues #116

Open
futuraprime opened this issue Oct 4, 2011 · 3 comments
Open

Leaflet Click Issues #116

futuraprime opened this issue Oct 4, 2011 · 3 comments

Comments

@futuraprime
Copy link

I have a fairly standard Wax/Leaflet.js setup and tiles coming from a TileStream server. I'm able to make the tooltip come up with mouseovers just fine, but the click action fails completely. I've been able to track the problem fairly far, but can't resolve it: when the click handler checks for a feature under the cursor, the g.TileFeature call (line 1078 of wax.leaf.js) returns nothing, even though the exact same coordinates came through the mouseover just fine (and I've checked, the coordinates being passed through to the function are identical).

Possibly related: each click on a Leaflet map generates dozens—in some cases, hundreds of MouseEvents.

@tmcw
Copy link

tmcw commented Oct 4, 2011

@futuraprime: what version of wax are you using - the tag & git version in the comment beginning wax.leaf.js?

@futuraprime
Copy link
Author

I'm on the latest version — wax - 3.0.8 - 1.0.4-396-g2818da4

I'm using Leaflet v0.2.

@futuraprime
Copy link
Author

I've set up a publicly accessible test page here: http://dev.futuraprime.net/tests/leaflet-test/leaflet-wax-test.html

You can see both errors in action—the clicks failing to find a feature, and the click action triggering repeatedly.

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

No branches or pull requests

2 participants