Changeset 10432 in josm for trunk/src/org/openstreetmap/josm/gui/MapView.java
- Timestamp:
- 2016-06-20T00:06:54+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10412 r10432 32 32 33 33 import javax.swing.AbstractButton; 34 import javax.swing.ActionMap;35 import javax.swing.InputMap;36 34 import javax.swing.JComponent; 37 35 import javax.swing.JPanel; … … 42 40 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent; 43 41 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 42 import org.openstreetmap.josm.data.ProjectionBounds; 44 43 import org.openstreetmap.josm.data.SelectionChangedListener; 45 44 import org.openstreetmap.josm.data.ViewportData; … … 495 494 * Constructs a new {@code MapView}. 496 495 * @param layerManager The layers to display. 497 * @param contentPane The content pane used to register shortcuts in its 498 * {@link InputMap} and {@link ActionMap} 496 * @param contentPane Ignored. Main content pane is used. 499 497 * @param viewportData the initial viewport of the map. Can be null, then 500 498 * the viewport is derived from the layer data. … … 598 596 if (layer instanceof MarkerLayer && playHeadMarker == null) { 599 597 playHeadMarker = PlayHeadMarker.create(); 598 } 599 600 ProjectionBounds viewProjectionBounds = layer.getViewProjectionBounds(); 601 if (viewProjectionBounds != null) { 602 scheduleZoomTo(new ViewportData(viewProjectionBounds)); 600 603 } 601 604
Note:
See TracChangeset
for help on using the changeset viewer.