d?.error !== undefined)}>
Something went wrong while contacting the MapComplete Studio Server: {$layersWithErr["error"]}
The server might be offline. Please:
osmConnection.AttemptLogin()}> Please log in to use MapComplete Studio
{#if state === undefined}

MapComplete Studio

state = "edit_layer"}> Edit an existing layer state = "new_layer"}> Create a new layer
{:else if state === "edit_layer"} {state =undefined}}>MapComplete Studio

Choose a layer to edit

{#each Array.from($layers) as layerId} { state = "loading" initialLayerConfig = await studio.fetchLayer(layerId) state = "editing_layer" }}>
{layerId}
{/each}
{:else if state === "new_layer"}

Enter the ID for the new layer

A good ID is:
  • a noun
  • singular
  • describes the object
  • in English
createNewLayer()} />
{#if $layerIdFeedback !== undefined}
{$layerIdFeedback}
{:else } createNewLayer()}> Create layer {$newLayerId} {/if}
{:else if state === "loading"}
{:else if state === "editing_layer"} {state =undefined}}>MapComplete Studio {/if}