Ignore:
Timestamp:
2015-10-19T19:59:59+02:00 (9 years ago)
Author:
simon04
Message:

JOSM/utilsplugin2: Add {#zoom} to utilsplugin2.customurl - fixes #josm11740

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/customurl/OpenPageAction.java

    r29769 r31652  
    2121import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    2222import org.openstreetmap.josm.tools.OpenBrowser;
     23import org.openstreetmap.josm.tools.OsmUrlToBounds;
    2324import org.openstreetmap.josm.tools.Shortcut;
    2425
     
    7273            } else if (key.equals("#lon")) {
    7374                val = Double.toString(center.lon());
     75            } else if (key.equals("#zoom")) {
     76                val = Integer.toString(OsmUrlToBounds.getZoom(Main.map.mapView.getRealBounds()));
    7477            }
    7578            else {
Note: See TracChangeset for help on using the changeset viewer.