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:
- Prepare a style yaml without center and zoom.
- Run "charites serve"
- Open "http://localhost:8080" at your browser. (It is redirected to http://localhost:8080/#NaN/NaN/NaN)
- 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.
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.