-
Notifications
You must be signed in to change notification settings - Fork 526
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
Interactivity doesn't work without a token #662
Comments
this may be a bug in node-mapnik, whereby if no data fields are supplied no hitgrid is output. I feel like I've seen this behavior but didn't think it would be an issue, so I'll need to look into it more. |
node-mapnik appears to produce grids without a problem when the But I notice that if a bogus field name is passed then node-mapnik does output an empty grid - however I've confirmed that tilemill is correctly passing an empty fields array, so grids are valid just have a data that looks like |
So... the problem is a few problems. Wax first finds data for a hover-spot, and if it has data, sends that data off to a formatter. With no tokens for a formatter, there's no data that comes back when Wax tries to find it. One could, then, say that Wax should just accept So, there needs to be 'something' that signifies that a user is over a thing. Note that the 'grid' portion of a UTFGrid does not specify data or no data; land or no land, etc: the meaning of a grid pixel is entirely placed on its data entry. So, we could have |
@tmcw, could you have |
Do shapefiles even have rowids? |
yes, shapefiles do. geojson through ogr is the oddball: http://trac.mapnik.org/ticket/753 |
I tried making a map with a static teaser formatter (no tokens) but interactivity would not show up. Adding an arbitrary token to the formatter resolved it.
The text was updated successfully, but these errors were encountered: