Skip to content

Commit 98497c9

Browse files
committed
Fix demo loading
1 parent a8e1b4b commit 98497c9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

demo/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/bundle.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/demo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ async function initMap() {
1212
})
1313

1414
// URL or path to your GeoParquet file
15-
const parquetUrl = 'demo/polys.parquet'
15+
const parquetUrl = 'https://hyparam.github.io/geoparquet/demo/polys.parquet'
1616

1717
try {
1818
// Read the GeoParquet file and convert to GeoJSON
19-
const file = await asyncBufferFromUrl({ url: parquetUrl })
19+
const file = await asyncBufferFromUrl({ url: parquetUrl, byteLength: 29838 })
20+
console.log('GeoParquet file:', file)
2021
const geojson = await toGeoJson({ file })
2122

2223
console.log('GeoJSON:', geojson)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "git+https://github.com/hyparam/geoparquet.git"
1919
},
2020
"dependencies": {
21-
"hyparquet": "1.7.0"
21+
"hyparquet": "1.17.1"
2222
},
2323
"devDependencies": {
2424
"@rollup/plugin-node-resolve": "16.0.0",

0 commit comments

Comments
 (0)