mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 18:10:48 +09:00
feat: enable PMTiles protocol support (#16629)
This patch enables PMTiles protocol for MapLibre-GL. Protocol allows to fetch tiles from a single file. This drastically simplifies the process to self-host own tiles.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<script lang="ts" module>
|
||||
import { Protocol } from 'pmtiles';
|
||||
|
||||
let protocol = new Protocol();
|
||||
void maplibregl.addProtocol('pmtiles', protocol.tile);
|
||||
void maplibregl.setRTLTextPlugin(mapboxRtlUrl, true);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user