Changeset 11183 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-10-28T23:49:03+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13851 - missing copyright text at the minimap in imagery preferences (same fix as #13709)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r10853 r11183  
    1414import java.awt.GridBagLayout;
    1515import java.awt.event.ActionEvent;
     16import java.awt.event.MouseAdapter;
    1617import java.awt.event.MouseEvent;
    1718import java.io.IOException;
     
    5051import org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon;
    5152import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle;
     53import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource;
    5254import org.openstreetmap.josm.Main;
    5355import org.openstreetmap.josm.data.imagery.ImageryInfo;
     
    338340            // Add default item map
    339341            defaultMap = new JMapViewer();
     342            defaultMap.setTileSource(new OsmTileSource.Mapnik()); // for attribution
     343            defaultMap.addMouseListener(new MouseAdapter() {
     344                @Override
     345                public void mouseClicked(MouseEvent e) {
     346                    if (e.getButton() == MouseEvent.BUTTON1) {
     347                        defaultMap.getAttribution().handleAttribution(e.getPoint(), true);
     348                    }
     349                }
     350            });
    340351            defaultMap.setZoomContolsVisible(false);
    341352            defaultMap.setMinimumSize(new Dimension(100, 200));
Note: See TracChangeset for help on using the changeset viewer.