forked from MapComplete/MapComplete
Let it glow! widths are on a black background, various small bugfixes
This commit is contained in:
parent
4a09a7ced9
commit
538d129941
5 changed files with 46 additions and 29 deletions
|
@ -65,21 +65,6 @@ export default class AvailableBaseLayers {
|
|||
});
|
||||
|
||||
|
||||
const queryParam = QueryParameters.GetQueryParameter("background", State.state.layoutToUse.data.defaultBackground);
|
||||
|
||||
queryParam.addCallbackAndRun((selectedId:string) => {
|
||||
console.log("Selected layer is ", selectedId)
|
||||
const available = self.availableEditorLayers.data;
|
||||
for (const layer of available) {
|
||||
if (layer.id === selectedId) {
|
||||
state.bm.CurrentLayer.setData(layer);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
state.bm.CurrentLayer.addCallbackAndRun(currentLayer => {
|
||||
queryParam.setData(currentLayer.id);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue