Changeset 11183 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-10-28T23:49:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r10853 r11183 14 14 import java.awt.GridBagLayout; 15 15 import java.awt.event.ActionEvent; 16 import java.awt.event.MouseAdapter; 16 17 import java.awt.event.MouseEvent; 17 18 import java.io.IOException; … … 50 51 import org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon; 51 52 import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle; 53 import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource; 52 54 import org.openstreetmap.josm.Main; 53 55 import org.openstreetmap.josm.data.imagery.ImageryInfo; … … 338 340 // Add default item map 339 341 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 }); 340 351 defaultMap.setZoomContolsVisible(false); 341 352 defaultMap.setMinimumSize(new Dimension(100, 200));
Note:
See TracChangeset
for help on using the changeset viewer.