TomSchimansky / TomSchimansky/TkinterMapView

Differentiating clicking on marker vs clicking on map

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hiya,

Thank you for the work you have done to produce these map functions.
I am encountering an issue where at times, clicking on a marker triggers the map_widget.add_left_click_map_command() event.

Ultimately I would like to be able to achieve clicking on a marker to select it, then clicking on an empty map space to deselect it.
On first selection it works as intended, but each subsequent click on a marker then triggers the "deselection" which in turn removes the selection.

As an example;
Click on a marker, it shows the paths from 1 marker to the next. Then clicking an empty space clears the drawn paths.

Hope that is making sense.

Thanks,

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

Reproduce the marker-selection and empty-map deselection sequence, then trace marker click handling alongside map_widget.add_left_click_map_command(). Done means marker clicks select without invoking map deselection, while empty-map clicks still clear the selection and drawn paths.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.