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 {  
    8787     * @param infoToAdd ImageryInfo for which the nag panel should be created
    8888     */
    8989    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
    9095        BooleanProperty showAgain = new BooleanProperty("message.imagery.nagPanel." + infoToAdd.getUrl(), true);
    9196        MapFrame map = MainApplication.getMap();
    9297        if (MainApplication.isDisplayingMapView() && Boolean.TRUE.equals(showAgain.get())

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to galen8183.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.