[gnome-maps/wip/mlundblad/handle-osm-urls: 4/11] place: Add a property for initial zoom level
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/handle-osm-urls: 4/11] place: Add a property for initial zoom level
- Date: Sat, 6 Jul 2019 12:27:27 +0000 (UTC)
commit a86aa5310cf2d371c7e4cce236937f00528fedfd
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]