Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

縮尺が0以下になる問題 #5

Open
rerost opened this issue Nov 3, 2016 · 1 comment
Open

縮尺が0以下になる問題 #5

rerost opened this issue Nov 3, 2016 · 1 comment

Comments

@rerost
Copy link
Member

rerost commented Nov 3, 2016

  • 問題点
    縮尺を求める式が zoom = 20 - log2(distance/10)なので、distance = 2^20 * 10 以上になると、zoomの値が0以下になってしまう。
    ただしこの値以上を入力してもAPI側で0にしていると思われるので動作上問題ない。
    2016-11-03 13 43 51

  • 解決策

    • 上式がある一定値以下(0?)のとき1にしてしまう・・・?
@rerost
Copy link
Member Author

rerost commented Nov 27, 2016

もしかすると、目的地に対してはこの計算方法だと適切でないかもしれない・・・

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant