mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
decompress vector tile preview correctly
This commit is contained in:
@@ -116,7 +116,7 @@ function MaplibreMap(props: { file: PMTiles }) {
|
||||
let initStyle = async () => {
|
||||
if (map) {
|
||||
let metadata = await props.file.metadata();
|
||||
let bounds = metadata.bounds.split(',');
|
||||
let bounds = metadata.bounds.split(",");
|
||||
map.fitBounds([
|
||||
[+bounds[0], +bounds[1]],
|
||||
[+bounds[2], +bounds[3]],
|
||||
|
||||
Reference in New Issue
Block a user