Disable map zoom in/zoom out buttons
Hello. Is there a way to disable/hide the top left zoom buttons?
Hey, I ran into this issue as well and have created a pull request with code modifications to address it.
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.
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.