Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump pmtiles to v3.x #220

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ol-mapbox-style": "^12.0.0",
"ol-pmtiles": "^0.2.0",
"pixelmatch": "^5.3.0",
"pmtiles": "^2.10.0",
"pmtiles": "^3.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
Expand Down
4 changes: 2 additions & 2 deletions app/src/MapViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { stylefunction } from "ol-mapbox-style";
import { PMTilesVectorSource } from "ol-pmtiles";
import { useGeographic } from "ol/proj";

import { FileAPISource, PMTiles, Protocol } from "pmtiles";
import { FileSource, PMTiles, Protocol } from "pmtiles";
import { createHash, parseHash } from "./hash";

const GIT_SHA = (import.meta.env.VITE_GIT_SHA || "main").substr(0, 8);
Expand Down Expand Up @@ -331,7 +331,7 @@ export default function MapViewComponent() {
});

const onDrop = useCallback((acceptedFiles: File[]) => {
setDroppedArchive(new PMTiles(new FileAPISource(acceptedFiles[0])));
setDroppedArchive(new PMTiles(new FileSource(acceptedFiles[0])));
}, []);

const { getRootProps } = useDropzone({ onDrop });
Expand Down
Loading