|
|
Log in / Subscribe / Register

Custom renderer?

Custom renderer?

Posted Jul 2, 2025 17:52 UTC (Wed) by Cyberax (✭ supporter ✭, #52523)
In reply to: Custom renderer? by malmedal
Parent article: 15 Years of OsmAnd

> The phone app consists of an Android WebView backed by an http-server which serves the tilemaker tiles and a javascript app, written with maplibre-gl and using osm-liberty as style.

That's the part that doesn't work for me. I couldn't get tilemaker tiles from the converted mbtiles. My goal is to render them on the web (for things like the map for Immich).

Do you mind sharing the configuration for that tile server? I promise I'll share the resulting `docker-compose.yml` and write a blog post about it.


to post comments

Custom renderer?

Posted Jul 2, 2025 19:03 UTC (Wed) by malmedal (subscriber, #56172) [Link]

Traveling right now, so don't have that accessible right now.

Are you sure you are talking about tilemaker and not one of the others like e.g. tippecanoe?

I prefer tilemaker because you just give it the planet-latest.osm.pbf and out comes either a .mbtiles or .pmtiles file. This is what you serve, for serving .mbtiles, you need to know it is just a sqlite3 file so I just coded up a simple endpoint in jetty(Java webserver) that did select tile where zoom = ? and row = ? and column = ?; and returned that.

For .pmtiles it is even easier, you just put the file in just about any webserver and point the client to that. The client will use byte-range http requests to get the metadata and the data it needs.(As long as you're not using a pre http/1.1 server :) )

Was that clear enough? Happy to answer more of needed.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds