TkinterMapView icon indicating copy to clipboard operation
TkinterMapView copied to clipboard

Different size for marker?

Open ManHinnn0509 opened this issue 3 years ago • 4 comments

Hi, thank you for creating this lib & customtkinter. Both are my favourite libs and I'm using them for every Python GUI project :)

I started to use this lib recently and I feel that the marker on the map is a bit too big. Is it possible to allow us to configure the size of the marker? Like extra args when creating it.

Thank you :)

ManHinnn0509 avatar Oct 16 '22 00:10 ManHinnn0509

Hi @ManHinnn0509 I have modified the current marker for a simple '+' character in order to enhance drawing performance if you are interested in this let me know. ^^

meimar18 avatar Nov 27 '22 16:11 meimar18

Hi @ManHinnn0509 I have modified the current marker for a simple '+' character in order to enhance drawing performance if you are interested in this let me know. ^^

Hi @meimar18. I'm interested in the simplified marker. Are you able to change the marker colour?

Thank you =D

LuisMiguelMoreno avatar Dec 14 '22 12:12 LuisMiguelMoreno

le to change the marker colour?

Hi @LuisMiguelMoreno. I found that in recent develop version of tkintermapview, it is posible to add an icon to replace the default marker so I recommend to use this. In case you want to do what I did (a red cross '+') build it as 2 crossed lines inside the draw method with the create_line method of "self.map_widget.canvas" object or as an ascii '+' with create_text function.

It is very important to build it as a "marker" in the tag keyword. If not the redraw functions won't work as expected.

I Hope this helps.

meimar18 avatar Dec 17 '22 20:12 meimar18

le to change the marker colour?

Hi @LuisMiguelMoreno. I found that in recent develop version of tkintermapview, it is posible to add an icon to replace the default marker so I recommend to use this. In case you want to do what I did (a red cross '+') build it as 2 crossed lines inside the draw method with the create_line method of "self.map_widget.canvas" object or as an ascii '+' with create_text function.

It is very important to build it as a "marker" in the tag keyword. If not the redraw functions won't work as expected.

I Hope this helps.

Oh thank you, I will try it.

LuisMiguelMoreno avatar Dec 20 '22 11:12 LuisMiguelMoreno