Changeset 14993 in josm
- Timestamp:
- 2019-04-15T07:30:58+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r14985 r14993 108 108 /** Divide intervals between native resolution levels to smaller steps if they are much larger than zoom ratio */ 109 109 public static final BooleanProperty PROP_ZOOM_INTERMEDIATE_STEPS = new BooleanProperty("zoom.intermediate-steps", true); 110 /** scale follows native resolution of layer status when layer is created */ 111 public static final BooleanProperty PROP_ZOOM_SCALE_FOLLOWS_NATIVE_RESOLUTION_AT_LOAD = new BooleanProperty( 112 "zoom.scale-follow-native-resolution-at-load", true); 110 113 111 114 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r14607 r14993 539 539 boolean active = ((NativeScaleLayer) layer) == MainApplication.getMap().mapView.getNativeScaleLayer(); 540 540 cb.setSelected(active); 541 cb.setToolTipText(active 542 ? tr("scale follows native resolution of this layer") 543 : tr("scale follows native resolution of another layer (click to set this layer)") 544 ); 541 if (MainApplication.getMap().mapView.getNativeScaleLayer() != null) { 542 cb.setToolTipText(active 543 ? tr("scale follows native resolution of this layer") 544 : tr("scale follows native resolution of another layer (click to set this layer)")); 545 } else { 546 cb.setToolTipText(tr("scale does not follow native resolution of any layer (click to set this layer)")); 547 } 545 548 } else { 546 549 cb.setSelected(false); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r14902 r14993 96 96 import org.openstreetmap.josm.gui.MainApplication; 97 97 import org.openstreetmap.josm.gui.MapView; 98 import org.openstreetmap.josm.gui.NavigatableComponent; 98 99 import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener; 99 100 import org.openstreetmap.josm.gui.Notification; … … 555 556 MapView.addZoomChangeListener(this); 556 557 557 if (this instanceof NativeScaleLayer) { 558 if (this instanceof NativeScaleLayer && NavigatableComponent.PROP_ZOOM_SCALE_FOLLOWS_NATIVE_RESOLUTION_AT_LOAD.get()) { 558 559 event.getMapView().setNativeScaleLayer((NativeScaleLayer) this); 559 560 }
Note:
See TracChangeset
for help on using the changeset viewer.