summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2019-06-19 21:11:01 +0200
committerMarcus Lundblad <ml@update.uu.se>2019-07-06 14:26:22 +0200
commita86aa5310cf2d371c7e4cce236937f00528fedfd (patch)
treec537ab6a1d4b785bbc59bfa7b5b4a3b41c4674ce
parenta2551d1da76eba1594f4098eb0f234713c811024 (diff)
downloadgnome-maps-a86aa5310cf2d371c7e4cce236937f00528fedfd.tar.gz
place: Add a property for initial zoom level
-rw-r--r--src/place.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/place.js b/src/place.js
index 3a284236..babb8b6f 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: