unvt / charites

It is an application to style vector tiles easily

Home Page:https://unvt.github.io/charites/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LivePreview has some issue without center and zoom in the style.yml.

ubukawa opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.
Without center and zoom in the style.yml, we cannot get the live preview at "http://localhost:8080" because it is redirected to "http://localhost:8080/#NaN/NaN/NaN."

(We can access to the live preview by manually [http://localhost:8080/#0/0/0 . )

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a style yaml without center and zoom.
  2. Run "charites serve"
  3. Open "http://localhost:8080" at your browser. (It is redirected to http://localhost:8080/#NaN/NaN/NaN)
  4. See error

Expected behavior
Because center and zoom are optional based on the style specification, if there is no information, we would like to use default value like 0/0/0 for z/x/y.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Charites Version:

  • Charites version: 0.2.0

Desktop (please complete the following information):

  • OS: [e.g. Windows] Docker on windows 10
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.