Skip to content

Commit

Permalink
feat: presentation filter (simple)
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 committed Mar 3, 2022
1 parent 476fa36 commit 24f9bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export default class Map {

// jump to initial view
if (view) {
if (this.moreEffect) {
if (this.moreEffect && this.filters.presentation !== 'simple') {
this.map.flyTo(view.center, view.zoomLevel)
log.warn('waiting initial view load...')
await new Promise((res) => {
Expand Down Expand Up @@ -827,6 +827,9 @@ export default class Map {
if (this.filters.map_name) {
filters.map_name = this.filters.map_name
}
if (this.filters.presentation) {
filters.presentation = this.filters.presentation
}
return filters
}

Expand Down

0 comments on commit 24f9bb1

Please sign in to comment.