-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix update edit link, add query parameters for map feedback #4685
Changes from 9 commits
973fe84
d18d408
ef0eb1f
ad82f4f
cbfe7b7
dc8664f
e2d0a3f
8601854
fc2afc1
192dfd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO we should keep the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oooh good point – for some reason I was thinking the convention was no |
||
// 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, | ||
|
@@ -1458,7 +1458,7 @@ class Map extends Camera { | |
* methods on the map. | ||
*/ | ||
remove() { | ||
if (this._hash) this._hash.remove(); | ||
if (this.hash) this.hash.remove(); | ||
browser.cancelFrame(this._frameId); | ||
this.setStyle(null); | ||
if (typeof window !== 'undefined') { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, if I'm understanding this right, the change from
.mapboxgl-improve-map
to.mapbox-improve-map
is in order to match against the CSS class used in our the TileJSON provided by Mapbox's vector tile sources?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct @anandthakker - I will ticket out changing that css class at the API level separately