Skip to content

Commit

Permalink
Update svelte-maplibre
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 4, 2023
1 parent 6a5388e commit a426362
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions viewer/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 viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
},
"dependencies": {
"pmtiles": "^2.10.0",
"svelte-maplibre": "^0.3.1"
"svelte-maplibre": "^0.4.3"
}
}
3 changes: 2 additions & 1 deletion viewer/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
map.on("moveend", () => {
let counts = [];
// TODO To be paranoid, dedupe by feature ID;
for (let f of map.queryRenderedFeatures(null, {
for (let f of map.queryRenderedFeatures(undefined, {
layers: ["input-layer"],
})) {
counts.push(f.properties.count);
Expand Down Expand Up @@ -226,6 +226,7 @@
<MapLibre
style="https://api.maptiler.com/maps/dataviz/style.json?key=MZEJTanw3WpxRvt7qDfo"
standardControls
hash
bind:map
>
{#if loadedFileCount > 0}
Expand Down

0 comments on commit a426362

Please sign in to comment.