mapbox.js
mapbox.js copied to clipboard
NoWrap for GridLayer?
If you have a TileLayer with NoWrap and a GridLayer that corresponds with it, there doesn't appear to be a way to set the GridLayer to also not wrap, so your tooltip will appear if the user mouses over the empty outside of the TileLayer. Maybe it would make sense if in the options of L.mapbox.gridLayer for there to be a noWrap option as there is for .tileLayer.
Gotcha. GridLayer does not inherit from TileLayer, so doesn't automatically have this feature: we'll have to add to https://github.com/mapbox/mapbox.js/blob/autoscale-true/src/grid_layer.js#L156-162 to implement.