Remix.run Logo
gregoriol 7 days ago

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

durkie 7 days ago | parent | next [-]

Something like https://github.com/maptiler/tileserver-gl can serve raster tiles from a vector tile dataset

fingerlocks 7 days ago | parent | prev | next [-]

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)

gregoriol 7 days ago | parent [-]

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.

fingerlocks 6 days ago | parent [-]

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.

chris_wot 7 days ago | parent | prev [-]

I am absolutely amazed that Apple don't support this yet. I had thought mapping was a competitive advantage for them...