Skip to content

Commit 16cbbd5

Browse files
committed
Fix syntax
1 parent 35f4a00 commit 16cbbd5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

demo/src/lib/Sidebar.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ const map = new maplibregl.Map({
3535
map.on("load", () => {
3636
map.addSource("admin_boundaries", {
3737
type: "vector",
38-
tiles: ["${boundaries_url}"]
38+
tiles: ["${boundaries_url}"],
3939
attribution: "${attribution}"
4040
});${
4141
showLabels !== "None"
4242
? `
4343
map.addSource("admin_labels", {
44-
type: "symbol",
45-
filter={['==', 'admin_level', ${filter}]}
46-
tiles: ["${labels_url}"]
44+
type: "vector",
45+
tiles: ["${labels_url}"],
4746
attribution: "${attribution}"
4847
});`
4948
: ""
@@ -130,7 +129,7 @@ map.on("load", () => {
130129
</div>
131130
<div class="input">
132131
<label for="labels-select">Labels</label>
133-
<select name="level-select" bind:value={showLabels}>
132+
<select name="labels-select" bind:value={showLabels}>
134133
{#each labels as l}
135134
<option value={l}>{l}</option>
136135
{/each}

0 commit comments

Comments
 (0)