←back to thread

OpenStreetMap's New Vector Tiles

(tech.marksblogg.com)
479 points marklit | 2 comments | | HN request time: 0s | source
Show context
gregoriol ◴[] No.42183592[source]
Is there a tool to capture vector tiles to raster files? Some tools like Apple's MapKit don't support vector tiles yet, and it could be interesting to use one single map base and be able to just generate the raster, instead of having a specific raster server
replies(3): >>42183659 #>>42183704 #>>42184629 #
fingerlocks ◴[] No.42183659[source]
Apple’s MapKit most definitely supports vector tiles, because you are given a CGContext to draw with. You just have to implement the MVT spec (it’s small)
replies(1): >>42185199 #
1. gregoriol ◴[] No.42185199[source]
The idea is to use "MapKit" for maps, not to override it and draw everything yourself... The fact that it's possible doesn't mean it's a good idea.

It is however possible to use Maplibre, Mapbox or some other libraries which I think do support vector tiles.

replies(1): >>42188438 #
2. fingerlocks ◴[] No.42188438[source]
It’s not a lot of work, like at all. And unlike mapbox/libre you’re are still within UIKit so you can leverage all the existing UI tooling on top of your vector layers.

It much more performant, ergonomic, and requires no external dependencies.