Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTFGrid with Swipe Layers #14

Open
webdobe opened this issue Jan 5, 2014 · 1 comment
Open

UTFGrid with Swipe Layers #14

webdobe opened this issue Jan 5, 2014 · 1 comment

Comments

@webdobe
Copy link

webdobe commented Jan 5, 2014

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.

@tmcw
Copy link
Contributor

tmcw commented Jan 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants