Closed Klumbumbus closed 1 year ago
Also when you click on a note in the notes panel on the right the popup appears there too. It would be better if it only appears there on right click.
Thanks @Klumbumbus, you're making two very good points there :-)
Unfortunately, I hadn't been able to find either a way to force the pop-up to be the top most layer or a way to only react to a right click mouse event.
I had checked to online documentation and other Plugins for any examples.
Could you, as a @josm member put me into contact with someone who could know how to solve these shortcomings?
K.
You can ask on josm-dev mailing list
or a way to only react to a right click mouse event
Use javax.swing.SwingUtilities#isRightMouseButton
You could take a look at org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer#adapter
, i.e., the popup menu for imagery layers.
This might also be solved by #21, will check.
This will be solved, although by modifying as little code as possible. It won't integrate better into JOSM, but at least the menu won't be hidden by the other popup anymore.
Also when you click on a note in the notes panel on the right the popup appears there too. It would be better if it only appears there on right click.
There is a context menu for notes now in JOSM; alas it isn't extensible by plugins.
There is a context menu for notes now in JOSM; alas it isn't extensible by plugins.
I know, I was also in discussions with one of the dev to make it extensible, but there hasn't been a solution as of yet.
Resolved by 7e97eec
After clicking on a note in the mapview two poups appear which often overlap each other.
See screenshot.