Readit News logoReadit News
ikawe · a month ago
Background:

Mapping applications split up data into "tiles" so you can download only the data you are currently looking at. For example, you don't want to download the entire planet, just to look at your own neighborhood.

Historically, these tiles were literally images that the client application (i.e. web map) could "tile" side by side to cover the part of the map you were looking at. Now we refer to those images as "raster" tiles, to differentiate them with "vector" tiles.

Rather than a rendered image, Vector tiles contain the raw data that you could use to render such an image. Vector tiles allow a smaller file size and more flexibility. For example, with vector tiles you can crisply render at partial zoom levels, keeping lines sharp and avoid pixelating text. The client can also have customizable styles - hiding certain layers or accentuating others from the vector tiles.

Vector tiles are not new technology. For example, Google Maps started using them over a decade ago. So why has it taken so long for OpenStreetMap.org? One reason is no doubt a lack of engineering capacity. There were also concerns about older and less powerful clients hardware not being up to the task, but that concern has lessened over time.

OpenStreetMap also has some unique requirements. It is a community edited database, and users want to see their edits soon (immediately really). It's not feasible to dynamically generate every tile request from the latest data, so caching is essential. Still, to minimize the amount of time tiles will be stale, a lot of work went into being able to quickly regenerate stale tiles before the new vector tiles were rolled out.

stevage · a month ago
>Vector tiles are not new technology.

Yeah, it really is not. Mapbox Vector Tiles spec came out in 2014, and they've been absolutely standard across all (non-government) web mapping for at least the last 5 years.

gregoriol · a month ago
Indeed almost everyone except Apple's MapKit library for in-app native maps integration is using vector these days.
showcaseearth · a month ago
+1. Google launched their (proprietary) vector tiles in 2013 as well, and I'd even argue that vector has been the standard well over 5 years now.
awkward · a month ago
Tiles aren't just about data selection, they're also about caching. By turning a continuous domain (any part of the world at any scale) into a series of discrete requests (a grid of tiles at several fixed scales), maps become a series of cacheable requests.
stevage · a month ago
For anyone who wants to actually try the new layer, it's called "Shortbread" and can be accessed under the layers selector. Or use this link: https://www.openstreetmap.org/#map&layers=S

The blog post could do a better job of surfacing that bit!

You can compare it to the existing vector tile layer created by MapTiler, which mimics the classic raster tile style: https://www.openstreetmap.org/#map&layers=V

severak_cz · a month ago
Oh but that default style for Shortbread is so ugly! No contrast, missing details and lots of information lost.

Hopefully it's vector tiles and information are there (I checked in Maputik) so it's possible to create my own style (which I will definitely try).

MapNavTom · a month ago
There is also the MapTiler OMT style for OpenMapTiles, which uses Vector Tiles. It is a close copy of the Standard OSM map style. It appeared at the same time as Shortbread on the osm.org website.
reddalo · a month ago
I agree, it's super close to the classical OSM style, but some things are missing, e.g. roads that are currently planned or in the building phase.
severak_cz · a month ago
Yeah. MapTiler has much better styles in general.
showcaseearth · a month ago
The lack of boundaries below national level is off-putting. Both the style and the tile spec itself seem to need a lot of refinement... highways look like a patchwork at low zoom. I had also thought shortbread excluded a lot of POI types, but maybe I need to review again.

But that's not to diminish the accomplishment overall here for the OSM page itself– this is an awesome step forward!

wiredfool · a month ago
OSM has always overdone boundaries in my opinion, the raster tiles show national/international waters and electoral districts, which are of limited use for most purposes.
timeon · a month ago
Yeah only motorways are highlighted everything else is faded in background.
maelito · a month ago
In case you wonder how much time / resources it takes to generate vector tiles, I'm running benchmarks with Tilemaker here for https://cartes.app

https://github.com/systemed/tilemaker/issues/839

mourner · a month ago
Also worth checking out https://github.com/onthegomap/planetiler, which maybe a bit less mature, but is much faster than Tilemaker.
maelito · a month ago
Is it ? The benchmark section says 42 m for a 128 Gb machine with 64 CPU.
economyballoon · a month ago
I am sorry but what is "300 Go RAM" 300 Go? I only know GB/GiB.
leca · a month ago
OP is probably French or his native tongue is French. Byte is “Octet” in French and typically you’ll see Go = Gigaoctet which is the same as GB.
farkanoid · a month ago
It's basically French for GB (Go = Gigaoctet)
dolmen · a month ago
Many important details are not visible anymore:

  - gates on private pathways 
  - shop names

johannes1234321 · a month ago
The choices are tough, also in details: Which shops to show in busy areas at which zoom level?

But mind: openstreetmap.org is ment as a developer site, for developers to see their changes quickly. The official idea is that other people should take the data and do "nice" things elsewhere. But of course reality is that users want to use openstreetmap.org as alternative to Google maps ...

ikawe · a month ago
Official? I've never heard this as official doctrine. Can you point me to anything official?

I'd love to see OpenStreetMap.org be more directly useful to more people, rather than only as a "developer site".

notachatbot123 · a month ago
All the more reason to show rather more than less data.
lutoma · a month ago
Personally I'm quite happy that these tiles cut down on the clutter in the original OSM tiles. It made it very hard for me to actually use them for navigation because there was just so much stuff everywhere.

For example the old tiles displayed rail tracks extremely prominently, which just aren't relevant 99% of the time even when traveling by train. In the vector tiles they're much more muted and thinner.

liotier · a month ago
> I'm quite happy that these tiles cut down on the clutter in the original OSM tiles. It made it very hard for me to actually use them for navigation

The Openstreetmap.org tiles are a demo and a contributor quality assurance tool - they are not meant for end-user applications, hence the rather over-the-top selection of map objects.

timeon · a month ago
Yes but this one only highlights motorways which are used usually just for long distance drives.
amluto · a month ago
What happened to maps trying to make the names of most or all streets visible? It looks like the vector layer on the web viewer is sort of trying to show some street names, but it seems extremely buggy right now — names appear and then disappear again when making small zoom adjustments.

Not that Apple Maps or Google Maps are much better in this regard.

colkassad · a month ago
What's the impediment to not providing daily or weekly planet-wide mbtiles similar to the availability of OSM pbfs on AWS open data buckets[1]?

[1] https://registry.opendata.aws/osm/

tppiotrowski · a month ago
I think mbtiles are being phased out for pmtiles because no DB required and can be served from static storage like R2/S3 (with a worker but hopefully the worker part goes away and they support byte offset requests soon)
jtbaker · a month ago
The worker isn’t required, having a z/x/y tile scheme just makes caching the tiles server side super easy.

Look at the network tab on https://pmtiles.io/#url=https%3A%2F%2Fdemo-bucket.protomaps....

stevage · a month ago
You don't need a database to serve mbtiles. If you're deploying PMTiles somewhere that doesn't support byte offset requests, then they don't really have much advantage over mbtiles.
sureglymop · a month ago
An mbtiles file is just an SQLite db which can store image or vector tiles which can be very useful.

It's great for exploring tiles but it essentially doesn't support range queries/requests, which pmtiles does.

sp8962 · a month ago
To answer the question: somebody needs to do the initial work and it's a further moving part that needs to be kept running (as the other responses point out such a distribution would likely use PMTiles as a container format). Given the current finances and staffing of the OSMF likely not top priority.
colkassad · a month ago
But they've done the work and are serving them now, just wondering why they don't just dump a copy on AWS. Thanks for answering!
butz · a month ago
While vector tiles are often marketed as faster loading ones, and it is true in OSM case, I would like to see apples to apples comparison: vector tiles with same level of detail as original OSM raster tiles. Maybe someone already has such vector style built?