mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
fix previe app build
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user