Modify ↓
Opened 6 months ago
#24271 new enhancement
Allow globally disabling imagery nag panels
Reported by: | galen8183 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | |
Keywords: | imagery nagPanel offset | Cc: |
Description
Add a configuration property to globally disable the imagery nag panel
("Imagery [...] might be misaligned."). Anyone frequently adding new imagery
layers should already know to check alignment. Therefore this is just an
annoyance for experienced users, and should be globally configurable. This can
be kept only in the advanced preferences so most users will still see the
warning.
My guess at the implementation:
-
src/org/openstreetmap/josm/gui/layer/AlignImageryPanel.java
a b public class AlignImageryPanel extends JPanel { 87 87 * @param infoToAdd ImageryInfo for which the nag panel should be created 88 88 */ 89 89 public static void addNagPanelIfNeeded(ImageryInfo infoToAdd) { 90 BooleanProperty showAgainAny = new BooleanProperty("message.imagery.nagPanel", true); 91 if (!Boolean.TRUE.equals(showAgainAny.get()) { 92 return 93 } 94 90 95 BooleanProperty showAgain = new BooleanProperty("message.imagery.nagPanel." + infoToAdd.getUrl(), true); 91 96 MapFrame map = MainApplication.getMap(); 92 97 if (MainApplication.isDisplayingMapView() && Boolean.TRUE.equals(showAgain.get())
Attachments (0)
Note:
See TracTickets
for help on using tickets.