[gnome-maps/wip/mlundblad/additional-place-icons: 3/5] photonParser: Set osmKey and osmValue on parsed place
- From: Marcus Lundblad <mlundblad src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-maps/wip/mlundblad/additional-place-icons: 3/5] photonParser: Set osmKey and osmValue on parsed place
 
- Date: Tue,  6 Apr 2021 20:25:21 +0000 (UTC)
 
commit e0cba86b0cc9af3ac92ab66909bbe0132722e38f
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Apr 6 21:56:56 2021 +0200
    photonParser: Set osmKey and osmValue on parsed place
 src/photonParser.js | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/photonParser.js b/src/photonParser.js
index 17aff883..3fcdbf88 100644
--- a/src/photonParser.js
+++ b/src/photonParser.js
@@ -86,6 +86,12 @@ function parsePlace(latitude, longitude, properties) {
     if (properties.extent)
         params.bounding_box = _parseBoundingBox(properties.extent);
 
+    if (properties.osm_key)
+        params.osmKey = properties.osm_key;
+
+    if (properties.osm_value)
+        params.osmValue = properties.osm_value;
+
     return new Place.Place(params);
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]