mapbox/wax — Issue #139: Interaction problems with multi-byte characters/control characters/something weird in the grids
Author: ajashton
Created: 2011-11-23 21:30:32+00:00
State: open
Labels: Bug

Sorry, I don't know if this is the right project for this or even what exactly the problem is. But I will try to explain it.

Take a look at [this map view](http://a.tiles.mapbox.com/v3/worldbank-climate.flood-hazard-population/mm/share,zoompan,zoomwheel,legend,tooltips,zoombox,attribution.html#7.00/52.078/4.708). In the center there is a tan chunk representing "Low" flood hazard - if you hover over it the tooltip should confirm this. Except a few areas at the center of it show a flood hazard rating of "High". The data is colored based on the same files & fields as the tooltip interaction, so there is definitely no secret High area in the middle of the Low area.

If you look at [the JSON grid](https://tiles.mapbox.com/v3/worldbank-climate.flood-hazard-population/7/64/42.grid.json?callback=grid) for this area, you can see that it contains a number of multi-byte characters (more obvious if you open a prettified copy of the file in vim). My hunch is that these multibyte characters are not being interpreted & matched correctly, resulting in incorrect tooltips, but really I have no idea.

I was talking with @springmeyer in chat the other day about this - maybe he has something to add here.