TkinterMapView icon indicating copy to clipboard operation
TkinterMapView copied to clipboard

Customizable icon for position marker

Open yucai2005 opened this issue 3 years ago • 4 comments

Hi Tom,

The current icon for position marker looks good. However, sometimes it can be crowded when there are a lot of position markers in a small area. Would it be better if the icons for position markers are customizable? For example, dots, circles, crosses, stars, or squares with adjustable size, line width, line colour, filling colour, etc.

And thank you for your great work on this package!

Kind Regards

yucai2005 avatar May 04 '22 02:05 yucai2005

That's a good idea, I will try to implement different shapes in the next time.

TomSchimansky avatar May 04 '22 21:05 TomSchimansky

I'll be working on unit icons such as tank, airplane, airport, infantry unit, etc. If and when I complete this, i'll send an update

techdr1ve avatar Jun 27 '22 05:06 techdr1ve

Hi Tom,

The current icon for position marker looks good. However, sometimes it can be crowded when there are a lot of position markers in a small area. Would it be better if the icons for position markers are customizable? For example, dots, circles, crosses, stars, or squares with adjustable size, line width, line colour, filling colour, etc.

And thank you for your great work on this package!

Kind Regards

In the meantime, you can shrink the current icon at each of the zoom levels and that should help massively, just look into the code there is sizing in there.

techdr1ve avatar Jun 27 '22 05:06 techdr1ve

@TomSchimansky Have you got any progress on this. I am really close at my project but i really need customized markers bro. If you have got any solution please let me know

sarankhaliq2326 avatar Jul 23 '22 20:07 sarankhaliq2326

I added an icon attribute now with version 1.16, where you can pass a PhotoImage object, which will replace the standard location marker: https://github.com/TomSchimansky/TkinterMapView#create-position-markers

Here is an example program: https://github.com/TomSchimansky/TkinterMapView/blob/main/examples/map_view_marker_icon_images.py

TomSchimansky avatar Nov 02 '22 23:11 TomSchimansky