mapbox.js icon indicating copy to clipboard operation
mapbox.js copied to clipboard

NoWrap for GridLayer?

Open cperryk opened this issue 11 years ago • 1 comments

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.

cperryk avatar Apr 24 '14 14:04 cperryk

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.

tmcw avatar May 27 '14 20:05 tmcw