|
|
Log in / Subscribe / Register

Custom renderer?

Custom renderer?

Posted Jul 2, 2025 10:31 UTC (Wed) by malmedal (subscriber, #56172)
In reply to: Custom renderer? by Cyberax
Parent article: 15 Years of OsmAnd

> I tried `tilemaker`, but I can't get it to render the tiles on-demand. Which it should be able to do.

I will be surprised if that can be made performant enough. I am using to render the entire world into a 70Gig or so file which fits on my phone.

> but it depends on MapTiler which is commercial.

You don't have to. This is what the tilemaker tiles replace.

To explain a bit more; what I do is use tilemaker to make vector tiles of the entire world, takes about a day, then copy it to my phone.

Instead of running tilemaker yourself you can download maptiler-osm-2025-06-30-v3.15-planet.mbtiles from MapTiler, not FOSS, but free for personal use,

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.

This gives me a nice map of wherever I am in the world, which I can use without expensive roaming charges or messing with a local sim.


to post comments

Custom renderer?

Posted Jul 2, 2025 17:52 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link] (1 responses)

> 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.

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