Hacker News new | ask | show | jobs
by tuukkah 1823 days ago
A big difference moving from OpenLayers and Leaflet to MapLibre GL is that you can use vector tiles and style them in the browser as opposed to rendering PNG files on the server. Converting OpenStreetMap to vector tiles is implemented by OpenMapTiles and they also have some open map styles.
1 comments

no, openlayers supports vector tiles out-of-the-box and leaflet with a plugin
True, OpenLayers and Leaflet have some support for vector tiles. However, you cannot rely on it because the performance is not there to render a normal map. Alternatively, you can use maplibre-gl-leaflet to integrate the two but it's experimental with some significant caveats.
You can use vector tiles with openlayers but they draw it on the canvas and not via web GL i.e. it is slower.