|
1 | 1 | import type { Bus } from "../data/bus"; |
2 | 2 | import type { BusStop } from "../data/busStops"; |
| 3 | +import busIconSvg from "../assets/busIcon.svg"; |
3 | 4 |
|
4 | 5 | export interface OverlayHandle { |
5 | 6 | setMap: (map: unknown) => void; |
@@ -168,17 +169,21 @@ export const createBusOverlays = ( |
168 | 169 |
|
169 | 170 | return buses.map((bus) => { |
170 | 171 | const busDiv = document.createElement("div"); |
171 | | - busDiv.style.width = "32px"; |
172 | | - busDiv.style.height = "32px"; |
| 172 | + busDiv.style.width = "24px"; |
| 173 | + busDiv.style.height = "46px"; |
173 | 174 | busDiv.style.display = "flex"; |
174 | 175 | busDiv.style.alignItems = "center"; |
175 | 176 | busDiv.style.justifyContent = "center"; |
176 | 177 | busDiv.style.cursor = "pointer"; |
177 | 178 | busDiv.setAttribute("role", "img"); |
178 | 179 | busDiv.setAttribute("aria-label", bus.shuttleId || "bus"); |
179 | 180 |
|
180 | | - const iconSVG = createIconSVG("bus"); |
181 | | - busDiv.appendChild(iconSVG); |
| 181 | + const img = document.createElement("img"); |
| 182 | + img.src = busIconSvg; |
| 183 | + img.alt = "버스"; |
| 184 | + img.style.width = "24px"; |
| 185 | + img.style.height = "46px"; |
| 186 | + busDiv.appendChild(img); |
182 | 187 |
|
183 | 188 | const busPosition = new window.kakao.maps.LatLng(bus.lat, bus.lng); |
184 | 189 | const busOverlay = new window.kakao.maps.CustomOverlay({ |
|
0 commit comments