▲ | memsom 7 days ago | |||||||||||||
I wish they were SVG, that would make rendering them less of a headache. There is still no good library which takes in a MVT tile and spits out the appropriate PNG or JPEG for rendering in via a tile base mapping engine. There is still no good cross platform mapping engine that can render vector tiles in a way that is easy to consume. There are certainly engines on specific platforms, but unless we use something like Leaflet or OpenLayers it is hard to make it work with native APIs on, say Windows, MacOs, Linux, iOS or Android without needing to adding a whole browser engine on top of your app. | ||||||||||||||
▲ | chrisdalke 6 days ago | parent | next [-] | |||||||||||||
Yup. I work a lot with MVTs and one of the headaches is, after you have your nice shiny state-of-the-art maps, turning them back into PNG raster tiles for all the various clients that can't natively render vector tiles. This link is shrinking though! There's slowly growing support. Leaflet and OpenLayers are fundamentally limited by being canvas-based, so there's only so much they can do. QGIS has one of the fastest, cleanest MVT renderers I've seen, but I don't know how easy that would be to extract out. PostGIS is the best platform for generating vector tiles, but it's extremely clunky. On the projects I'm working on (eg https://vectorcharts.com/) I do extensive processing in PostGIS, but then encode to vector tiles in bespoke C++ code. | ||||||||||||||
▲ | dvdkon 7 days ago | parent | prev | next [-] | |||||||||||||
There are plenty non-web vector map renderers, but they generally provide a full GUI widget, not a simple "extent -> png" function. I don't think creating that would be too much work, though: Just set one of those libraries to render to a texture. Maplibre Native even seems to have a headless "render to PNG" backend: https://github.com/maplibre/maplibre-native/tree/main/platfo... | ||||||||||||||
▲ | mxfh 7 days ago | parent | prev [-] | |||||||||||||
If I would like to print vector-tile based maps to pdfs for handout's or something, is there any CPU renderer, server- or client-side that could output SVGs instead of rasterizing on GPU to bitmap at some point? I havent yet come across any renderer that would do this even partially, even before opening the whole can of worms that is text rendering. Closest thing I'm aware of might be ArcGIS Maps for Adobe Creative Cloud but would need something that's more like a library and preferably FOSS. | ||||||||||||||
|