▲ | orblivion 3 days ago | ||||||||||||||||||||||||||||
Someone please correct me if I'm wrong here, but I think there's an additional benefit. Traditional process is: OSM Database -> PNGs -> Your screen The first arrow decides what data to pull out and how to draw it. The new process is: OSM Database -> Vector Tiles -> Your Screen The first arrow decides what data to pull out. The second arrow decides how to draw it. So given your vector tiles, you can choose and tweak the style that it's drawn as, deciding how (and if) to display certain things. And you can tweak that in your browser. That's useful for devs and users. "Night Mode", "Show bike lanes" (maybe?), etc. Also relevant is that the vector tile is not only in a couple formats (pmtiles, mbtiles) but conforms to a couple different schemas (Shortbread, OpenMapTiles) which determines what kinds of data shows up. For instance (I'm just making up this example) one schema might have "big" "medium" and "small" roads. Another schema might just have "big" and "small". The transformation process will decide which kinds of roads in the OSM database map on to which type of road in the schema. (I think it turns out that you can't realistically just pull out all of the OSM database data, you have to pare it down). And then certain styles (Americana, etc) work for specific schemas, deciding things like "big roads are black", etc. | |||||||||||||||||||||||||||||
▲ | stevage 3 days ago | parent | next [-] | ||||||||||||||||||||||||||||
The enormous difference from an infrastructure standpoint is where the arrows are happening and how much effort it is. > OSM Database -> PNGs This is a tile rendering farm. It takes a lot of compute power and has to be redone every time a style changes or data changes. > OSM Database -> Vector Tiles This is a relatively cheap data extraction process. It has to be redone when data changes. > PNGs -> Your screen This is extremely simple. > Vector Tiles -> Your Screen This is pretty complex and hard to do fast. Mapbox GL JS is the leader here and they have put a lot of resources into doing it well and fast. Maplibre GL JS is the fork, which is decent, and there are also Leaflet and OpenLayers options. Source: This is basically my life for the last 10 years. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | SigmundA 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
More like OSM Database -> PNGs -> PNG Decoder in browser-> Your screen vs OSM Database -> Vector Tiles -> MaplibreGL.js -> WebGL -> Your Screen | |||||||||||||||||||||||||||||
|