mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
js decoder 1.1.0
adds fflate dependency; maplibre decoder can read gzipped tiles [#41]
This commit is contained in:
@@ -93,6 +93,7 @@ function MaplibreMap(props: { file: PMTiles }) {
|
||||
useEffect(() => {
|
||||
let cache = new ProtocolCache();
|
||||
maplibregl.addProtocol("pmtiles", cache.protocol);
|
||||
cache.add(props.file); // this is necessary for non-HTTP sources
|
||||
|
||||
map = new maplibregl.Map({
|
||||
container: mapContainerRef.current!,
|
||||
|
||||
Reference in New Issue
Block a user