From f3340f923444b1c4e960ef71c6b1fcd79ce42005 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 21 Jun 2022 22:09:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BA=D0=BB=D1=8E?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D1=8B=20=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=BD=D0=B0=20LocationCoordinate=20#16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/map/umap.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/map/umap.tmpl b/templates/map/umap.tmpl index f320c689c9..83e1143805 100644 --- a/templates/map/umap.tmpl +++ b/templates/map/umap.tmpl @@ -2821,7 +2821,9 @@ var addressPoints = [ {{range .Users}} - [parseFloat({{.Location}}.split(',')[0]) , parseFloat({{.Location}}.split(',')[1]), "{{avatar .}} {{.HomeLink}} {{.FullName}} {{.Description}}"], + {{if .LocationCoordinate}} + [parseFloat({{.LocationCoordinate}}.split(',')[0]) , parseFloat({{.LocationCoordinate}}.split(',')[1]), "{{avatar .}} {{.HomeLink}} {{.FullName}} {{.Description}}"], + {{end}} {{else}} {{end}} @@ -2831,16 +2833,15 @@
- Mouse over a cluster to see the bounds of its children and click a cluster to zoom to those bounds