photools.com Community

IMatch Bug Reports and Feature Requests => Bug Reports => Solved Bug Reports (for next version) => Topic started by: akirot on January 06, 2023, 12:09:21 PM

Title: Map Panel target marker moves when closing context window
Post by: akirot on January 06, 2023, 12:09:21 PM
Right click a flag in the map panel -> context window opens -> okay
Click "Target Marker here" -> Target Marker positioned -> okay

Close context window by hitting "x" in the lower right corner -> context window closes but Target Marker moves to where the "x" button has been -> bug, should stay as assigned


Title: Re: Map Panel target marker moves when closing context window
Post by: Mario on January 06, 2023, 01:42:57 PM
Which IMatch version and map provider do you use?
Title: Re: Map Panel target marker moves when closing context window
Post by: Mario on January 06, 2023, 04:02:33 PM
I could reproduce this.
Happened only with OpenLayer-based Maps (not Google).

I have added a bug fix for this for IMatch 2023.
If this is super-urgent for you, I can set you a patch for the Map App.
Title: Re: Map Panel target marker moves when closing context window
Post by: akirot on January 07, 2023, 08:27:31 AM
As I found my way around it's not super urgent.
Nevertheless it would help if you could provide a patched map app or give advice where and how to change the app please (until IMatch 2023 becomes available).
Thank You!
Title: Re: Map Panel target marker moves when closing context window
Post by: Mario on January 07, 2023, 09:47:06 AM
Add two lines to the file "C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\FEATURES\mapapp\ol\olmap.js" in a text editor (Windows Notepad, Microsoft Visual Studio Code) as follows:

Image1.jpg
Title: Re: Map Panel target marker moves when closing context window
Post by: akirot on January 07, 2023, 10:55:53 AM
I successfully have "eaten the left click" - thank you