custom layer url placeholder

This commit is contained in:
vcoppe
2024-06-26 17:48:18 +02:00
parent c7fd2fe6b5
commit ac3cd9ecc5
2 changed files with 7 additions and 1 deletions

View File

@@ -207,7 +207,12 @@
<Label for="url">{$_('layers.custom_layers.urls')}</Label>
{#each tileUrls as url, i}
<div class="flex flex-row gap-2">
<Input bind:value={tileUrls[i]} id="url" class="h-8" />
<Input
bind:value={tileUrls[i]}
id="url"
class="h-8"
placeholder={$_('layers.custom_layers.url_placeholder')}
/>
{#if tileUrls.length > 1}
<Button
on:click={() => (tileUrls = tileUrls.filter((_, index) => index !== i))}

View File

@@ -203,6 +203,7 @@
"new": "New custom layer",
"edit": "Edit custom layer",
"urls": "URL(s)",
"url_placeholder": "WMTS, WMS or Mapbox style JSON",
"max_zoom": "Max zoom",
"layer_type": "Layer type",
"basemap": "Basemap",