unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
54 stars 13 forks source link

Fix error when bounds not found in neither style nor tilejson #169

Closed keichan34 closed 1 year ago

keichan34 commented 1 year ago

Description

If bounds was not found in style, shared.js would calculate the default center from the bounds in TileJSON. However, if bounds was not in TileJSON, an error occurred. This fixes that error by checking if the bounds exist before trying to calculate the center.

Type of Pull Request

Verify the followings