forked from MapComplete/MapComplete
Lots of refactoring, first version of the import helper
This commit is contained in:
parent
612b8136ad
commit
3402ac0954
54 changed files with 1104 additions and 315 deletions
|
@ -61,7 +61,6 @@ export default class DefaultGUI {
|
|||
const hasPresets = state.layoutToUse.layers.some(layer => layer.presets.length > 0);
|
||||
const noteLayer: FilteredLayer = state.filteredLayers.data.filter(l => l.layerDef.id === "note")[0]
|
||||
let addNewNoteDialog: (isShown: UIEventSource<boolean>) => BaseUIElement = undefined;
|
||||
const t = Translations.t.notes
|
||||
if (noteLayer !== undefined) {
|
||||
addNewNoteDialog = (isShown) => new NewNoteUi(noteLayer, isShown, state)
|
||||
}
|
||||
|
@ -144,7 +143,8 @@ export default class DefaultGUI {
|
|||
leafletMap: state.leafletMap,
|
||||
layerToShow: new LayerConfig(home_location_json, "all_known_layers", true),
|
||||
features: state.homeLocation,
|
||||
enablePopups: false,
|
||||
popup: undefined,
|
||||
state
|
||||
})
|
||||
|
||||
state.leafletMap.addCallbackAndRunD(_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue