TomSchimansky / TomSchimansky/TkinterMapView

marker color will not update until it moves off screen then back on.

Open
#52 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
743
Forks
110
PR merge metrics
No merged PRs in 30d

Description

I am trying to have a marker change color when I click it. the command looks like this

    def click_command(self, marker):
        marker.marker_color_circle=self.blue
        marker.draw()
        print(marker.text)

This does not work until I move the screen so the marker goes out of view, and when it comes back into view it works.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the shown click_command and inspect the marker.draw() path in TkinterMapView. Verify that changing marker_color_circle is rendered immediately after the click, without moving the map or taking the marker off screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.