From 05bcc717ab4ebbe0229b93971545e0ea6fc1ebfb Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 13 Oct 2022 11:21:08 +0800 Subject: [PATCH] fix previe app build --- app/src/MaplibreMap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/MaplibreMap.tsx b/app/src/MaplibreMap.tsx index 148c1a9..14e1984 100644 --- a/app/src/MaplibreMap.tsx +++ b/app/src/MaplibreMap.tsx @@ -129,7 +129,7 @@ function MaplibreMap(props: { file: PMTiles }) { useEffect(() => { 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 map = new maplibregl.Map({