Ignore:
Timestamp:
2019-06-18T00:09:37+02:00 (5 years ago)
Author:
Don-vip
Message:

see #13201, see #17825 - allow to download geo: URI from the command line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/DownloadParamType.java

    r14153 r15180  
    2727 */
    2828public enum DownloadParamType {
    29     /** http(s):// URL */
     29    /** http(s):// or geo:// URL */
    3030    httpUrl {
    3131        @Override
     
    142142     */
    143143    public static DownloadParamType paramType(String s) {
    144         if (s.startsWith("http:") || s.startsWith("https:")) return DownloadParamType.httpUrl;
     144        if (s.startsWith("http:") || s.startsWith("https:") || s.startsWith("geo:")) return DownloadParamType.httpUrl;
    145145        if (s.startsWith("file:")) return DownloadParamType.fileUrl;
    146146        String coorPattern = "\\s*[+-]?[0-9]+(\\.[0-9]+)?\\s*";
Note: See TracChangeset for help on using the changeset viewer.