TkinterMapView icon indicating copy to clipboard operation
TkinterMapView copied to clipboard

Disable map zoom in/zoom out buttons

Open EmKare opened this issue 1 year ago • 3 comments

Hello. Is there a way to disable/hide the top left zoom buttons?

EmKare avatar Sep 29 '24 05:09 EmKare

Hey, I ran into this issue as well and have created a pull request with code modifications to address it.

ninerforce avatar Nov 19 '24 00:11 ninerforce

For people in future that are lazy like me

self.map_widget = TkinterMapView(self.frame_right, corner_radius=0) self.map_widget.canvas.itemconfig(self.map_widget.button_zoom_in.canvas_rect, state='hidden') self.map_widget.canvas.itemconfig(self.map_widget.button_zoom_in.canvas_text, state='hidden') self.map_widget.canvas.itemconfig(self.map_widget.button_zoom_out.canvas_rect, state='hidden') self.map_widget.canvas.itemconfig(self.map_widget.button_zoom_out.canvas_text, state='hidden')

You could do this if you want, or use @ninerforce's solution.

swordsounds avatar Mar 26 '25 15:03 swordsounds

A way to move them is also something I'd love to have available. Thank you for the itemconfig code, that should do the job, but having it configurable in the tkintermapview would also be very handy.

I appreciate all the help.

RbtsEvrwhr-Riley avatar Nov 18 '25 00:11 RbtsEvrwhr-Riley