utfgrid-spec
utfgrid-spec copied to clipboard
UTFGrid with Swipe Layers
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.
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.