How to correctly set the group scale when loading tiles? #2008
Replies: 1 comment
-
|
Linked repo is archived. I guess it is not relevant any more. If it is - create a very little demo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm creating a tile system with konva.js for a project I have where users can draw on top of map about streets, but I'm getting an error when changing from one zoom to another one, after the first zoom the tiles seems to be higher that they should be. I'm gonna left the code here and some images of the issue
https://github.com/CarMi0Proggramer/vue-konva-tiles.git
In the first zoom panning and the other things are ok, but then when you change the zoom all goes down. I tried inversely scaling the group that contains the tiles and it worked but then I noticed that the tiles where getting smaller than it should be, then when you are in a zoom 6 it seems that you are in a zoom 3.
That was what added when I scaled the group inversely
and then updated getTiledPixelBounds to take the tile's scale in account
Beta Was this translation helpful? Give feedback.
All reactions