TileMapBase icon indicating copy to clipboard operation
TileMapBase copied to clipboard

Zooming in

Open workKan opened this issue 2 years ago • 1 comments

Greetings!

I am using your project to add basemap for matplotlib. Is there a solution with your project to handle zooming in?

Without enough "width" it is not precise enough, although with too much "width" the performance decreases greatly for example when showing the plot.

Thank you in advance!

workKan avatar Mar 07 '22 11:03 workKan

Not sure it is of great help, but i was now trying this

https://github.com/pseyfert/fitfile-jugglers/commit/2f17db56dfc79eab13200909a018b46f2c528156

add a callback handler to my axes object, such that when i zoom in, I can query the new xlim and ylim, and redraw the map. (and then I also redraw everything that is plotted on top of the map, so you can probably ignore half of the lines of code)

It still feels slow, and I don't seem to be able to zoom out but maybe you can use it as a starting point.

(Since there is a lot of unrelated stuff in my commit, maybe also https://stackoverflow.com/a/31491515 helps for a more minimal example of adding a callback and handle zooming.

pseyfert avatar Jan 21 '23 19:01 pseyfert