Ticket #17191: infoactions.patch
| File infoactions.patch, 1.2 KB (added by , 7 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/osmobjinfo/OSMObjInfoActions.java
102 102 } 103 103 104 104 public static void openinBrowserMapillary(String coords) { 105 if (coords == null || coords.equals("")) return; 105 106 String[] arrCoords = coords.split(","); 106 107 String url = "https://www.mapillary.com/app/?lat=" + arrCoords[0] + "&lng=" + arrCoords[1] + "&z=20&focus=map&dateFrom=2017-01-01"; 107 108 new Notification(tr("Open in browser " + url)).setIcon(JOptionPane.INFORMATION_MESSAGE).setDuration(Notification.TIME_SHORT).show(); … … 110 111 } 111 112 112 113 public static void openinBrowserOpenstreetcam(String coords) { 114 if (coords == null || coords.equals("")) return; 113 115 String[] arrCoords = coords.split(","); 114 116 String url = "http://openstreetcam.org/map/@" + arrCoords[0] + "," + arrCoords[1] + ",18z"; 115 117 new Notification(tr("Open in browser " + url)).setIcon(JOptionPane.INFORMATION_MESSAGE).setDuration(Notification.TIME_SHORT).show();
