logoalt Hacker News

MapLibre Tile: a modern and efficient vector tile format

197 pointsby todsacerdotitoday at 10:19 AM42 commentsview on HN

Comments

Koffiepoedertoday at 11:57 AM

Had to search a bit, but here's a demo page: https://maplibre.org/maplibre-gl-js/docs/examples/display-a-... Can be compared with: https://maplibre.org/maplibre-gl-js/docs/examples/display-a-...

In that example I saw this in the console:

    before - 2.41+26.29+24.87+71.28+59.2+77.57 - 261.62kb
    after  - 2.45+22.4 +22.66+60.6+51.99+77.57 - 237.67kb
So roughly a ~10% compression improvement, neat!
show 1 reply
zylepetoday at 2:22 PM

Planetiler currently supports generating MLT by adding —-tile-format=mlt cli argument. It’s only on latest main right now but I should be able to get a release out in the next few days. In my testing I’ve seen ~10% reduction in overall OpenMapTiles archive size with default settings but there are some more optimizations the team is working on that should bring it down even further.

pratiotoday at 11:34 AM

This is interesting. We recently deployed a solution that uses pmtiles and it's great.

https://docs.protomaps.com/pmtiles/

afaik, pmtiles uses mvt, let's hope the tooling to convert the tiles to mlt also becomes available.

show 4 replies
ccevtoday at 11:25 AM

MapLibre is an awesome project, their JS library is by far the best way to display maps in the browser that I've come across. Very excited to eventually switch to this format!

show 1 reply
mattrighettitoday at 2:03 PM

Does anyone self host maps? Id you do, mind sharing the pros, cons and tools to do that?

show 2 replies
shiroltoday at 2:20 PM

Unrelated, but I noticed that clicking the logo goes to the current permalink rather than the homepage, might be unintentional.

maelitotoday at 1:25 PM

Unfortunately, Tilemaker hasn't planned or cannot plan to support MLT in the medium-term.

That will leave a significant part of the community out of this transition.

See this interesting (and quite heated) discussion : https://github.com/systemed/tilemaker/issues/856

twelvechairstoday at 12:31 PM

Looks great. I wish there was similar advancement for full 3d tiles. The only real option at the moment is cesiums 3d tiles format which is nowhere near as fast as it could/should be

willtemperleytoday at 1:37 PM

Another thing worth mentioning is it's very similar to the structure of columnar formats like Arrow and Parquet. Anyone with familiarity with these formats could build a decoder in a couple of days. If they don't use FastPFOR.

I really wish they hadn't used FastPFOR. It's a research library and has an incredibly opaque algorithm:

https://ayende.com/blog/199523-C/integer-compression-underst...

ltbarcly3today at 1:46 PM

"Modern" is such a silly way to advertise things.

QuiCasseRientoday at 12:46 PM

All links in the top navigation are broken (404).

show 1 reply
einpoklumtoday at 1:10 PM

I am not familiar with the ecosystem of geographic data and mapping as online services. Can someone please explain...

* How this tile format, or the organization behind it, related to OpenStreetMap (if it is related at all)?

* Why the need to replace the previous tile format / scheme which they mention?

* What challenges such a project faces (other than, I suppose, being noticed and considered for adoption)?

show 3 replies
maximgeorgetoday at 2:08 PM

[dead]

adim86today at 1:04 PM

I find it shocking that a reputable resource such as this is still displaying the size of Greenland or Africa wrong (Mercator projection) in relation to other land masses in its marketing material and documentation, like here. It just brings doubt to the whole project, which is a shame considering all the time they must have put in. Why show the map that way when majority of its users will never use it for nautical navigation? https://maplibre.org/maplibre-gl-js/docs/examples/display-a-...

show 9 replies