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

wax.mm.js mouseover interactivity error #117

Open
nateirwin opened this issue Oct 4, 2011 · 2 comments
Open

wax.mm.js mouseover interactivity error #117

nateirwin opened this issue Oct 4, 2011 · 2 comments

Comments

@nateirwin
Copy link

When I updated to the latest version of Wax (3.0.8 - 1.0.4-403-ge99ff67), I noticed that I was getting an error when mousing over the map when a layer or multiple layers with interactivity were added to it. I traced the problem back to line 379 of "wax.mm.js":

if (grid_tile.keys[key] && grid_tile.data[grid_tile.keys[key]]) {

grid_tile was sometimes undefined. Checking to make sure it is undefined solves the problem:

if (grid_tile && grid_tile.keys[key] && grid_tile.data[grid_tile.keys[key]]) {

although I'm sure there is something wrong on down the line somewhere, so this probably isn't a solution to the underlying problem.

@nateirwin
Copy link
Author

A little more info about this. The error seems to occur when the mouse is over or close to HTML elements that are absolutely positioned over the map. I'm having a hard time reproducing this consistently, though.

@tmcw
Copy link

tmcw commented Oct 5, 2011

Hmm. In new builds, I've added the extra check you suggest to avoid the error, but it definitely is something deeper - possibly just pulling blank grid tiles but still going through that bit of the code. Keeping open.

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