TomSchimansky / TkinterMapView

A python Tkinter widget to display tile based maps like OpenStreetMap or Google Satellite Images.
Creative Commons Zero v1.0 Universal
621 stars 85 forks source link

Different size for marker? #49

Open ManHinnn0509 opened 2 years ago

ManHinnn0509 commented 2 years ago

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 :)

meimar18 commented 1 year ago

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. ^^

LuisMiguelMoreno commented 1 year ago

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

meimar18 commented 1 year ago

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.

LuisMiguelMoreno commented 1 year ago

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.