Ignore:
Timestamp:
2016-11-27T10:42:36+01:00 (3 years ago)
Author:
simon04
Message:

see #13201 - OsmUrlToBounds: also take Geo URLs into account

This adds Geo URL support to various actions, such as:

  • Download dialog
  • Jump to Position
  • Commandline parameters (OSM or GPS download)
Location:
trunk/src/org/openstreetmap/josm/actions
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java

    r11286 r11329  
    2525
    2626import org.openstreetmap.josm.Main;
    27 import org.openstreetmap.josm.actions.downloadtasks.DownloadGeoUrlTask;
    2827import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask;
    2928import org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask;
     
    7574        addDownloadTaskClass(DownloadOsmChangeTask.class);
    7675        addDownloadTaskClass(DownloadOsmUrlTask.class);
    77         addDownloadTaskClass(DownloadGeoUrlTask.class);
    7876        addDownloadTaskClass(DownloadOsmIdTask.class);
    7977        addDownloadTaskClass(DownloadOsmCompressedTask.class);
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmUrlTask.java

    r7937 r11329  
    77
    88import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     9import org.openstreetmap.josm.tools.GeoUrlToBounds;
    910import org.openstreetmap.josm.tools.OsmUrlToBounds;
    1011
     
    2425        return new String[]{
    2526                "https?://www\\.(osm|openstreetmap)\\.org/\\?lat=.*&lon=.*",
    26                 "https?://www\\.(osm|openstreetmap)\\.org/(.*)?#map=\\p{Digit}+/.*/.*"};
     27                "https?://www\\.(osm|openstreetmap)\\.org/(.*)?#map=\\p{Digit}+/.*/.*",
     28                GeoUrlToBounds.PATTERN.toString(),
     29        };
    2730    }
    2831
Note: See TracChangeset for help on using the changeset viewer.