[gnome-maps/wip/mlundblad/handle-osm-urls: 14/18] 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: 14/18] place: Add a property for initial zoom level
- Date: Tue, 25 Jun 2019 20:27:20 +0000 (UTC)
commit 13b079e8022fd32182485581086366e5d93d751b
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]