From 997e8c4adb1414b57199a93295d2eeafa52ae288 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Mon, 8 Apr 2024 14:42:26 +0200
Subject: [PATCH] Add point of interest's name to the GeoJson properties

---
 src/main/java/no/nibio/vips/logic/entity/PointOfInterest.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/no/nibio/vips/logic/entity/PointOfInterest.java b/src/main/java/no/nibio/vips/logic/entity/PointOfInterest.java
index 425fd96c..33aaf8a0 100755
--- a/src/main/java/no/nibio/vips/logic/entity/PointOfInterest.java
+++ b/src/main/java/no/nibio/vips/logic/entity/PointOfInterest.java
@@ -276,6 +276,10 @@ public class PointOfInterest implements Serializable, Comparable {
         {
             this.properties.put("pointOfInterestTypeId", this.getPointOfInterestTypeId());
         }
+        if(this.properties.get("pointOfInterestName") == null)
+        {
+            this.properties.put("pointOfInterestName", this.getName());
+        }
         return this.properties;
     }
 
-- 
GitLab