by have_faith · 5y ago · 0 comments
Other libraries mentioned have better text label and styling support out of the box compared to deck, so typically people do interleaved WebGL rendering with deck.gl and other basemap libraries to get a beautiful base and a super performant deck overlay.
Tile hosting is still typically a paid service from someone, though COGS and S3 are a self-hosting option.
I primarily work on libraries adjacent to deck.gl, happy to answer questions.
https://github.com/maplibre/maplibre-gl-js
I've used it on a smaller project, it worked well for me.
Recent versions of both are semi-fast, enough for general use
To have your own tile server, you'd probably want something like OpenMapTiles (https://openmaptiles.org/) or another alternative like Tilemaker (https://tilemaker.org/).
OL is much more than a rendering library, it understands different geospatial input formats (raster and vector, tiled or not) and dynamically reprojects them to the same map projection, and lets you overlay UI elements (points of interest, polygons, lines, animations, etc.) or blend layers together (backgrounds, base maps, hill shades, etc.)
Check out the examples: https://openlayers.org/en/latest/examples/
Now, personally, I'd still go for using a tile server in most cases in apps where the map functionality isn't the main part of the app, because of how simple that approach is, as well as how friendly to battery life those maps can be.
Of course, if maps are front and center to your app, then things probably change somewhat!
Though i do believe that OP was also particularly asking about how to host their own solution, presumably on a VPS or another server somewhere. In that regard, it's interesting to see the options out there, in part because there didn't used to be that many - sure, PostGIS is perfect for processing and storing geospatial data, yet when it comes to the display of maps, that niche of the industry is a little bit more new!