Changeset 19225 in josm


Ignore:
Timestamp:
2024-09-18T22:24:36+02:00 (7 weeks ago)
Author:
taylor.smock
Message:

Fix #23925: Indicate/link to alternative download methods when the user attempts to download too much data

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r18923 r19225  
    263263            String msgStr = (String) msg;
    264264            content = new HtmlPanel(msgStr.startsWith("<html>") ? msgStr : "<html>" + msgStr + "</html>");
     265            ((HtmlPanel) content).enableClickableHyperlinks();
    265266        } else {
    266267            content = msg;
  • trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java

    r19080 r19225  
    2929import org.openstreetmap.josm.data.osm.Relation;
    3030import org.openstreetmap.josm.data.osm.Way;
     31import org.openstreetmap.josm.gui.help.HelpUtil;
    3132import org.openstreetmap.josm.io.ChangesetClosedException;
    3233import org.openstreetmap.josm.io.IllegalDataException;
     
    579580            message += "<br>"
    580581                + tr("The area you tried to download is too big or your request was too large."
    581                         + "<br>Either request a smaller area or use an export file provided by the OSM community.");
     582                        + "<br>Either request a smaller area or use an export file provided by the OSM community."
     583                        + "<br><br>Downloading a smaller area is <em>recommended</em>!"
     584                        + "<br><br>Advanced users can use one of the following options:"
     585                        + "<br><ul>"
     586                        + "<li><a href=\"{0}\">Overpass</a></li>"
     587                        + "<li><a href=\"{1}\">Geofabrik</a></li>"
     588                        + "<li><a href=\"{2}\">OSM Planet File</a></li>"
     589                        + "</ul>", HelpUtil.getHelpTopicUrl("/Help/Action/Download#DownloadfromOverpassAPI"),
     590                    "https://www.geofabrik.de/data/download.html",
     591                    "https://planet.openstreetmap.org/");
    582592        } else if (errorHeader != null) {
    583593            message += tr("<br>Error message(untranslated): {0}", errorHeader);
Note: See TracChangeset for help on using the changeset viewer.