diff --git a/src/com/roots/map/MapPanel.java b/src/com/roots/map/MapPanel.java index 16e798f..a795194 100644 --- a/src/com/roots/map/MapPanel.java +++ b/src/com/roots/map/MapPanel.java @@ -1939,6 +1939,9 @@ public static void launchUI() { } public static void main(String[] args) { + // HTTP User-agent is required to be set by OSM Tile Usage Policy to avoid an error. + System.setProperty("http.agent", "MapPanel app (https://github.com/srutz/mappanel)"); + SwingUtilities.invokeLater(new Runnable() { public void run() { try {