-
Notifications
You must be signed in to change notification settings - Fork 42
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
Interaction confused by multiple tile layers? #95
Comments
So the current issue is that TileMill / mbutil currently generates tiles in |
Wow. Sorry about the delayed response here (I was away from the office/interwebs for a while). I'll try to get back into this in the next few days and see if there's anything I might be able to discover. And maybe I'll actually post any findings in the correct place next time....heh. |
I can confirm this behavior. Though, I have not dug into the code yet. |
I can kind of reproduce this issue. I have exported a mbtiles archive using mb-util, then accessing it using wax + mm/leaf. The tiles are being loaded correctly (scheme: 'tms'), but grid data still uses the normal xyz, so y is wrong. Was is trying to load the json grid files in the correct layer, but with wrong y. |
I'm attempting to create a map with 2 tile layers, one with street map level detail and a transparent overlay layer which defines some custom boundaries and which was generated using TileMill. Well, actually I took the mbtiles file and broke it out into a directory using mbutil, which it suddenly occurs to me may be the source of the issue...maybe I'll post this over there too...
Anyways, what seems to be happening is the interaction control is getting the info about which grid.json file to grab based on the bottom layer. so given this example (using Leaflet):
What ends up happening is that the bottom layer, which in this case is the one from CloudMade, is what the interaction control is using to fetch the grid.json file. So, given this tile from CloudMade:
...the interaction control tries to fetch the grid.json file thusly:
GET /wa-trans-loc/1.0.0/WA/9/82/178.grid.json?callback=grid HTTP/1.1
. Which is what you'd expect, right? Except that when you look at the structure of the overlay tiles, there is no 178.grid.json file. And what's more confusing is that the tile that the overlay layer is loading for the same spot on the map is actually this one:The screwy thing is that if I stack the layers in the reverse order so that my overlay layer is on the bottom, it gets the grid.json file just fine. But putting it below the street map tiles kinda defeats the purpose of having an overlay in the first place.
I guess the real question I have here is: am I using this in a way that was entirely unintended? Is there an elegant workaround? Or is this really something that needs to be addressed?
The text was updated successfully, but these errors were encountered: