-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
MapLibre-GL-JS problem with MBTile source #1716
Comments
As soon as every function in mbtiles mod inverts the y axis the tilejson should respond with xyz. |
Martin's sources are xyz, regardless of the backend. Users (clients) should not know the type of the data backend, especially because multiple backends can be combined. If the data is coming from an mbtiles, Martin will normalize it. |
Ok, so the tilejson should always return |
I believe it always does, unless somehow forced, e.g. with a PG SQL comment. From the looks of it, martin/mbtiles/src/metadata.rs Line 119 in 5f28466
|
yes, that's what I also found and currently I'm modifying the source step by step locate the issue why it responds with |
now it gets worse, I modified the |
Ah, do I miss here something? {
"scheme":"xyz",
"version":"3.15.0",
"filesize":"601583616",
"format":"pbf",
"id":"openmaptiles",
"maskLevel":"8",
"pixel_scale":"256",
"scheme":"tms",
"tilejson":"2.1.0"
}
|
Ok, the scheme is placed in the martin/mbtiles/src/metadata.rs Lines 139 to 142 in 5f28466
I'm working on a fix. |
At the moment I face a problem using MapLibre GL JS and an MBTile source.
The tilejson responds with
scheme: tms
what is correct I've read because mbtiles are alwaystms
?!?!It looks like MapLibre GL JS is taking care of that and requests a inverted y axis, but in the mbtiles mod the y axis is inverted again:
martin/mbtiles/src/mbtiles.rs
Line 144 in 00757ee
So I'm getting no tiles for the specified region. If I point maplibe to a modified tilejson with
scheme: xyz
it will work.The text was updated successfully, but these errors were encountered: