File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,14 @@ const map = new maplibregl.Map({
3535map.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 }
You can’t perform that action at this time.
0 commit comments