forked from MapComplete/MapComplete
Add better way handling
This commit is contained in:
parent
0bb5abec3c
commit
1373bd106e
10 changed files with 46 additions and 13 deletions
4
index.ts
4
index.ts
|
@ -166,7 +166,7 @@ const bm = new Basemap("leafletDiv", locationControl, new VariableUiElement(
|
|||
|
||||
// ------------- Setup the layers -------------------------------
|
||||
const addButtons: {
|
||||
name: string,
|
||||
name: UIElement,
|
||||
icon: string,
|
||||
tags: Tag[],
|
||||
layerToAddTo: FilteredLayer
|
||||
|
@ -195,7 +195,7 @@ for (const layer of layoutToUse.layers) {
|
|||
const flayer = layer.asLayer(bm, allElements, changes, osmConnection.userDetails, selectedElement, generateInfo);
|
||||
|
||||
const addButton = {
|
||||
name: layer.name,
|
||||
name: Translations.W(layer.name),
|
||||
icon: layer.icon,
|
||||
tags: layer.newElementTags,
|
||||
layerToAddTo: flayer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue