Fix build
This commit is contained in:
parent
641d015fea
commit
ce884baf6a
3 changed files with 17 additions and 12 deletions
|
@ -16,9 +16,8 @@ import {Changes} from "../../Logic/Osm/Changes";
|
|||
import ChangeLocationAction from "../../Logic/Osm/Actions/ChangeLocationAction";
|
||||
import LayoutConfig from "../../Models/ThemeConfig/LayoutConfig";
|
||||
import MoveConfig from "../../Models/ThemeConfig/MoveConfig";
|
||||
import AvailableBaseLayers from "../../Logic/Actors/AvailableBaseLayers";
|
||||
import {ElementStorage} from "../../Logic/ElementStorage";
|
||||
import Img from "../Base/Img";
|
||||
import ValidatedTextField from "../Input/ValidatedTextField";
|
||||
|
||||
interface MoveReason {
|
||||
text: Translation | string,
|
||||
|
@ -129,11 +128,17 @@ export default class MoveWizard extends Toggle {
|
|||
zoom: reason?.startZoom ?? 16
|
||||
})
|
||||
|
||||
|
||||
let background: string[]
|
||||
if(typeof reason.background == "string"){
|
||||
background = [reason.background]
|
||||
}else{
|
||||
background = reason.background
|
||||
}
|
||||
|
||||
const locationInput = new LocationInput({
|
||||
minZoom: reason.minZoom,
|
||||
centerLocation: loc,
|
||||
mapBackground: AvailableBaseLayers.SelectBestLayerAccordingTo(loc, new UIEventSource(reason.background))
|
||||
mapBackground: ValidatedTextField.bestLayerAt(loc, new UIEventSource(background))
|
||||
})
|
||||
|
||||
if (reason.lockBounds) {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
],
|
||||
"path": "delete_not_allowed.svg",
|
||||
"license": "CC0",
|
||||
"sources": []
|
||||
}
|
|
@ -505,6 +505,14 @@
|
|||
"https://commons.wikimedia.org/wiki/File:Trash_font_awesome.svg\rT"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "delete_not_allowed.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "direction.svg",
|
||||
"license": "CC0; trivial",
|
||||
|
|
Loading…
Reference in a new issue