Comments (2)
It's a bit of a hack, but if there is a better way to do it, I would like to know.
def click_command(self, marker):
marker.delete()
lat=marker.position[0]
lon=marker.position[1]
self.marker_list.append(self.map_widget.set_marker(lat, lon, marker_color_circle=self.blue))
print(marker.text)
from tkintermapview.
Currently there is no method of doing this, I can just give you a better hack, but I can not guarantee this will work in the future, because maybe the variable names will change:
marker.map_widget.canvas.itemconfigure(marker.big_circle, fill=self.marker_color_circle, outline=self.marker_color_outside)
Maybe I will ad a method to change the colors.
from tkintermapview.
Related Issues (20)
- Unable to load overlay layer using "set_overlay_tile_server" HOT 13
- Add Circle with specific radius HOT 1
- set_path function adding lines to lat_lon list HOT 1
- NOAA Electronic Navigation Chart (ENC) Support HOT 1
- marker cluster
- Using offline tiles
- Coordinate conversion error
- set_overlay_tile_server creates empty views HOT 1
- create polygon with name
- Status code 403 HOT 5
- enhancement: Create path lines with arrow head so we can follow the direction of the path
- map moves on marker clicks
- The app has no map, the app is empty!
- map moves
- attribution inclusion and support for folium maps
- Widget's zoom buttons are hollow
- Virus warning when using PyInstaller
- enhancement: marker name text background
- Elepsoid map projection
- Pacific Cutoff
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkintermapview.