7 ms·
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 fi
by tuukkah 5y 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.
- kabes 5y agono, openlayers supports vector tiles out-of-the-box and leaflet with a plugin
- karussell 5y agoYou can use vector tiles with openlayers but they draw it on the canvas and not via web GL i.e. it is slower.
- tuukkah 5y agoTrue, 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.