[gnome-maps/wip/mlundblad/handle-osm-urls: 1/2] 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: 1/2] place: Add a property for initial zoom level
- Date: Wed, 19 Jun 2019 19:12:35 +0000 (UTC)
commit c8e4534c473985f00502b9e7733b6e198d996b35
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]