forked from MapComplete/MapComplete
PDF-export: the time-sensitive icons (notably hopening_hours) are now hidden
This commit is contained in:
parent
fb193123e0
commit
24b9f045c8
5 changed files with 14 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue