forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
94c61744c0
commit
04c8ccb0d2
89 changed files with 2353 additions and 1390 deletions
|
|
@ -757,10 +757,11 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
|
|||
if (!showScale) {
|
||||
if (this.scaleControl) {
|
||||
try {
|
||||
|
||||
map.removeControl(this.scaleControl)
|
||||
} catch (e) {
|
||||
console.warn("Could not remove scale control, underlying map might have had a reset")
|
||||
console.warn(
|
||||
"Could not remove scale control, underlying map might have had a reset"
|
||||
)
|
||||
}
|
||||
this.scaleControl = undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue