fix: bounds and centerzoom
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
4772f0efdc
commit
9e76cc4a5e
1 changed files with 2 additions and 2 deletions
|
|
@ -29,11 +29,11 @@ export const GetPMtilesInfo = async (pmtilesFile) => {
|
||||||
header.maxLat != 0 &&
|
header.maxLat != 0 &&
|
||||||
header.maxLon != 0
|
header.maxLon != 0
|
||||||
) {
|
) {
|
||||||
const bounds = [header.minLat, header.minLon, header.maxLat, header.maxLon];
|
const bounds = [header.minLon, header.minLat, header.maxLon, header.maxLat];
|
||||||
metadata['bounds'] = bounds;
|
metadata['bounds'] = bounds;
|
||||||
}
|
}
|
||||||
if (header.centerLon != 0 && header.centerLat != 0) {
|
if (header.centerLon != 0 && header.centerLat != 0) {
|
||||||
const center = [header.centerLon, header.centerLat, header.centerLat];
|
const center = [header.centerLon, header.centerLat, header.centerZoom];
|
||||||
metadata['center'] = center;
|
metadata['center'] = center;
|
||||||
}
|
}
|
||||||
metadata['minzoom'] = header.minZoom;
|
metadata['minzoom'] = header.minZoom;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue