public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH widget-toolkit] utils: render location: add a marker for the exact coordinates
@ 2026-05-19 13:15 Shannon Sterz
  0 siblings, 0 replies; only message in thread
From: Shannon Sterz @ 2026-05-19 13:15 UTC (permalink / raw)
  To: pve-devel

this should help visualizing the exact location of the coordinates
when opening the location on open street maps.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 src/Utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Utils.js b/src/Utils.js
index 6b12399..d78f08a 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -1577,7 +1577,7 @@ Ext.define('Proxmox.Utils', {
                 return Proxmox.Utils.NoneText;
             }
             let location = Proxmox.Utils.parsePropertyString(value);
-            let link = `https://openstreetmap.org#map=20/${location.latitude}/${location.longitude}`;
+            let link = `https://openstreetmap.org?mlat=${location.latitude}&mlon=${location.longitude}#map=20/${location.latitude}/${location.longitude}`;
             let degrees = `${location.latitude} &deg;, ${location.longitude} &deg;, <a href='${link}' target="_blank" rel="noreferrer">open on OpenStreetMap</a>`;
             if (location.name) {
                 return `${location.name} (${degrees})`;
-- 
2.47.3





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-19 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 13:15 [PATCH widget-toolkit] utils: render location: add a marker for the exact coordinates Shannon Sterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal