From 3434703f31992c5f01cd9dc4670282c198354a0c Mon Sep 17 00:00:00 2001 From: Molly Lloyd Date: Fri, 26 May 2017 13:17:43 +0200 Subject: [PATCH] change hash back to private property --- src/ui/control/attribution_control.js | 2 +- src/ui/map.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/control/attribution_control.js b/src/ui/control/attribution_control.js index d68443371e1..0ce99e81884 100644 --- a/src/ui/control/attribution_control.js +++ b/src/ui/control/attribution_control.js @@ -81,7 +81,7 @@ class AttributionControl { } return acc; }, `?`); - this._editLink.href = `https://www.mapbox.com/feedback/${paramString}${this._map.hash ? this._map.hash.getHashString(true) : ''}`; + this._editLink.href = `https://www.mapbox.com/feedback/${paramString}${this._map._hash ? this._map._hash.getHashString(true) : ''}`; } } diff --git a/src/ui/map.js b/src/ui/map.js index 1dc42956e09..009856df4d2 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -192,9 +192,9 @@ class Map extends Camera { bindHandlers(this, options); - this.hash = options.hash && (new Hash()).addTo(this); + this._hash = options.hash && (new Hash()).addTo(this); // don't set position from options if set through hash - if (!this.hash || !this.hash._onHashChange()) { + if (!this._hash || !this._hash._onHashChange()) { this.jumpTo({ center: options.center, zoom: options.zoom,