fix previe app build

This commit is contained in:
Brandon Liu
2022-10-13 11:21:08 +08:00
parent cf20dcd0ce
commit 05bcc717ab

View File

@@ -129,7 +129,7 @@ function MaplibreMap(props: { file: PMTiles }) {
useEffect(() => { useEffect(() => {
let protocol = new Protocol(); let protocol = new Protocol();
maplibregl.addProtocol("pmtiles", protocol.tileFunc); maplibregl.addProtocol("pmtiles", protocol.tile);
protocol.add(props.file); // this is necessary for non-HTTP sources protocol.add(props.file); // this is necessary for non-HTTP sources
map = new maplibregl.Map({ map = new maplibregl.Map({