utfgrid-spec icon indicating copy to clipboard operation
utfgrid-spec copied to clipboard

UTFGrid with Swipe Layers

Open webdobe opened this issue 12 years ago • 1 comments

I am using leaflet to create a set of swipable layers. Mapbox has an example of this: https://www.mapbox.com/mapbox.js/example/v1.0.0/swipe-layers/ My issue is that when a layer is getting clipped UTFGrid does not respect it. So it still gives the UTFGrid data for the last added layer. When hovering the other layer. Hopefully this make sense.

webdobe avatar Jan 05 '14 04:01 webdobe

Technically this is a bug just in the example / mapbox.js, but it's going to be tricky to pull off something that does the 'right thing' here - the swipe example uses CSS to hide & show layers, and the gridcontrol has no way of knowing. This is probably a bit out of scope & would be handled best in your own custom code.

tmcw avatar Jan 05 '14 15:01 tmcw