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

low accuracy #77

Open
jzyzxx opened this issue Oct 24, 2020 · 5 comments
Open

low accuracy #77

jzyzxx opened this issue Oct 24, 2020 · 5 comments

Comments

@jzyzxx
Copy link

jzyzxx commented Oct 24, 2020

With the same bounndry,i find different location results useing the panzoom api,there are obvious changes.

@Fuzzyma
Copy link
Member

Fuzzyma commented Oct 25, 2020

Please give us something to work with. I have no idea what you are talking about

@jzyzxx
Copy link
Author

jzyzxx commented Oct 26, 2020

My english is poor,i speak chinese.核心代码:zoomTo(level,boundry),第一次我调用zoomTo(12,{x:12,y:12}),第二次我调用zoomTo(12,{x:12,y:12}),传入相同的位置,但是视图有明显的变化.为什么两次传入的位置一样,但是定位不一样?
zoomTo = (boundary) => { let draw = this.state.viewportType == 's' ? this.sViewport : this.hViewport; let max = this.state.maxY; draw.zoom(1).animate().zoom(12, { x: boundary.x, y: max - boundary.y }) }

@Fuzzyma
Copy link
Member

Fuzzyma commented Oct 26, 2020

zoomTo is not a function in the library. We only have zoom(). If you pass 12 both times, the second time nothing should happen.

@jzyzxx
Copy link
Author

jzyzxx commented Oct 26, 2020

Maybe you should draw grid lines firstly,zoom(1).animate().zoom(12,{x:100,y:100}) and repeat,the second time you can find differences.

@jzyzxx
Copy link
Author

jzyzxx commented Oct 26, 2020

If i am free,i will provide a demo link.

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

2 participants