Skip to content

Commit 2f54a9c

Browse files
tknkaaqwencoder
andcommitted
Use blue pin icon for water server markers
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent ec4032d commit 2f54a9c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/markers.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import L from "leaflet";
2-
import { WaterServer } from "./assets";
32

43
export interface MarkerData {
54
position: [number, number];
@@ -34,10 +33,10 @@ export const orangeIcon = L.icon({
3433
});
3534

3635
export const waterServerIcon = L.icon({
37-
iconUrl: WaterServer,
38-
iconSize: [28, 28],
39-
iconAnchor: [14, 28],
40-
popupAnchor: [0, -28],
36+
iconUrl:
37+
"https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-blue.png",
38+
iconSize: [25, 41],
39+
iconAnchor: [12.5, 41],
4140
});
4241

4342
export const vendingMachineMarkers: MarkerData[] = [

0 commit comments

Comments
 (0)