TomSchimansky / TkinterMapView

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

Show image instead of marker #47

Closed vargaaronR closed 1 year ago

vargaaronR commented 1 year ago

Hello,

is it possible to show only the image and hide the orange/red marker at map_view_marker_example? So show the choosen image instead of the marker. Thanks your answer in advance!

BR, Aron

TomSchimansky commented 1 year ago

Hi, currently there is no built in option for this. Maybe I will add this, but currently I#m working on other projects. But if I have the time I will go through all of the issues on this project and see if I can implement the enhancements.

TomSchimansky commented 1 year ago

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

KFischbach18 commented 5 months ago

Tom,

Using your tkintermapview, i'm not able to use this "icon" parameter. I have version 1.29 installed, what is the paramter name for this???