[gnome-maps/wip/mlundblad/handle-osm-urls: 2/8] place: Add a property for initial zoom level



commit a6c7e85d0d1044980aa61577391a6bee48f12cdd
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Jun 19 21:11:01 2019 +0200

    place: Add a property for initial zoom level

 src/place.js | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/place.js b/src/place.js
index 3a28423..babb8b6 100644
--- a/src/place.js
+++ b/src/place.js
@@ -72,6 +72,9 @@ class Place extends Geocode.Place {
         this._note = params.note;
         delete params.note;
 
+        this._initialZoom = params.initialZoom;
+        delete params.initialZoom;
+
         /* Determines if the place should be added to the place store */
         if (typeof(params.store) === 'undefined') {
             this._store = true;
@@ -226,6 +229,10 @@ class Place extends Geocode.Place {
         return this._translateWheelchair(this._wheelchair);
     }
 
+    get initialZoom() {
+        return this._initialZoom;
+    }
+
     _translateWheelchair(string) {
         switch(string) {
             /* Translators:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]