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

[Mapbox] Getting raster mbtiles to work in the offline Tileserver #637

Closed
rudokemper opened this issue Sep 2, 2021 · 0 comments · Fixed by #638 or #640
Closed

[Mapbox] Getting raster mbtiles to work in the offline Tileserver #637

rudokemper opened this issue Sep 2, 2021 · 0 comments · Fixed by #638 or #640

Comments

@rudokemper
Copy link
Member

For offline "Field Kit" Terrastories, we are using TileServer-GL to render mbtiles. The process to get tiles running is basically to deposit an mbtiles file in tileserver/data/mbtiles/ and an associated style.json in tileserver/data/styles.

This works just fine with vector mbtiles, but raster mbtiles (such as ones generated through QGIS's Generate XYZ Tiles tool) seems to have an issue. While these raster mbtiles work just fine in the TileServer-GL server spun up by Terrastories at localhost:8080, the tiles do not render in Terrastories itself. Within Terrastories, we get a series of errors in the console per each GET request for the tiles. Error messaging is Error {message: "Unimplemented type: 7"} in evented.js:141. Errors in full below.

Upon looking into this somewhat, this might be a compression error (link and link), but we're not sure as of yet. What is rather confusing is that the raster tiles do work in the Terrastories localhost tileserver; just not in Terrastories itself.

So, we would love some help diagnosing this further and figuring out if it's (a) an issue with Terrastories parsing raster tiles from TileServer, or (b) an issue with the mbtiles raster formatting.

Marking this as critical since a user in Guyana is trying to get an offline Field Kit running and came across this issue.

To Reproduce
Steps to reproduce the behavior:

  1. Download basic.mbtiles and style.json here: link
  2. Place basic.mbtiles in tileserver/data/mbtiles/ and place style.json in tileserver/data/styles.
  3. Set up Terrastories and start for offline usage / maps (more on that here)
  4. Go to the Terrastories map (you might have to create a community first, more on that here) and see error

Screenshots
image

Here you see the raster tiles working in the local tileserver:
image

Full error messages

Error {message: "Unimplemented type: 7"}
fire	@	evented.js:141
fire	@	evented.js:135
fire	@	evented.js:135
_tileLoaded	@	source_cache.js:256
done	@	vector_tile_source.js:151
processTask	@	actor.js:163
receive	@	actor.js:128

and

message: "Unimplemented type: 7"
[[Prototype]]: Object
constructor: ƒ Error()
message: ""
name: "Error"
toString: ƒ toString()
[[Prototype]]: Object
fire	@	evented.js:141
fire	@	evented.js:135
fire	@	evented.js:135
_tileLoaded	@	source_cache.js:256
done	@	vector_tile_source.js:151
processTask	@	actor.js:163
receive	@	actor.js:128

and

message: "Unimplemented type: 7"
[[Prototype]]: Object
constructor: ƒ Error()
message: ""
name: "Error"
toString: ƒ toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant