From 24f9bb18ec38876865895141c4eb9cddcd17c55a Mon Sep 17 00:00:00 2001 From: Ibrahima Date: Thu, 3 Mar 2022 11:00:27 +0100 Subject: [PATCH] feat: presentation filter (simple) --- src/Map.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Map.js b/src/Map.js index 789fe80..361db8d 100644 --- a/src/Map.js +++ b/src/Map.js @@ -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) => { @@ -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 }