Commit 7660e24 1 parent 24b992d commit 7660e24 Copy full SHA for 7660e24
File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 86
86
console .log (e .detail .error );
87
87
}}
88
88
images ={[
89
- { id: " walk_cycle_only" , url: " /filters/walk_cycle_only_icon.gif" },
90
- { id: " no_entry" , url: " /filters/no_entry_icon.gif" },
91
- { id: " bus_gate" , url: " /filters/bus_gate_icon.gif" },
92
- { id: " school_street" , url: " /filters/school_street_icon.gif" },
89
+ {
90
+ id: " walk_cycle_only" ,
91
+ url: ` ${import .meta .env .BASE_URL }/filters/walk_cycle_only_icon.gif ` ,
92
+ },
93
+ {
94
+ id: " no_entry" ,
95
+ url: ` ${import .meta .env .BASE_URL }/filters/no_entry_icon.gif ` ,
96
+ },
97
+ {
98
+ id: " bus_gate" ,
99
+ url: ` ${import .meta .env .BASE_URL }/filters/bus_gate_icon.gif ` ,
100
+ },
101
+ {
102
+ id: " school_street" ,
103
+ url: ` ${import .meta .env .BASE_URL }/filters/school_street_icon.gif ` ,
104
+ },
93
105
]}
94
106
>
95
107
<div bind:this ={mapDiv } />
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { Modal , notNull } from " ../common" ;
3
3
4
+ // TODO Use of import.meta.env.BASE_URL below is to workaround https://github.com/vitejs/vite/issues/10601
5
+
4
6
export let filterType: string ;
5
7
6
8
let choices = [
41
43
disabled ={filterType == name }
42
44
on:click ={() => (filterType = name )}
43
45
><img
44
- src ={` /filters/${name }_icon.gif ` }
46
+ src ={` ${ import . meta . env . BASE_URL } /filters/${name }_icon.gif` }
45
47
width =" 80"
46
48
alt ={label }
47
- /><br />{label }</button
49
+ /><br />{label }</button
48
50
>
49
51
</div >
50
52
{/each }
51
53
</td >
52
54
<td >
53
55
<img
54
- src ={` /filters/${filterType }.gif ` }
56
+ src ={` ${ import . meta . env . BASE_URL } /filters/${filterType }.gif` }
55
57
height =" 300"
56
58
alt ={currentTriple [1 ]}
57
59
/>
You can’t perform that action at this time.
0 commit comments