PDF-export: the time-sensitive icons (notably hopening_hours) are now hidden

This commit is contained in:
Pieter Vander Vennet 2023-11-14 17:35:50 +01:00
parent fb193123e0
commit 24b9f045c8
5 changed files with 14 additions and 4 deletions

View file

@ -36,7 +36,8 @@
isExporting = true
const gpsLayer = state.layerState.filteredLayers.get(<PriviligedLayerType>"gps_location")
state.lastClickObject.features.setData([])
state.userRelatedState.preferencesAsTags.data["__showTimeSensitiveIcons"] = "no"
state.userRelatedState.preferencesAsTags.ping()
const gpsIsDisplayed = gpsLayer.isDisplayed.data
try {
gpsLayer.isDisplayed.setData(false)
@ -68,6 +69,9 @@
} finally {
isExporting = false
gpsLayer.isDisplayed.setData(gpsIsDisplayed)
state.userRelatedState.preferencesAsTags.data["__showTimeSensitiveIcons"] = "yes"
state.userRelatedState.preferencesAsTags.ping()
}
}
</script>