location marker - Jisu legacy

This commit is contained in:
2026-06-09 02:43:51 +09:00
parent 11d5d7f493
commit 5c2ac2ed3f

View File

@@ -13,6 +13,25 @@
let markers = []; // keep track of pins on map
/** Jisu Legacy - 내 위치 마커 (메시지 핀과 구분되는 파란 점) */
function addUserLocationMarker(map, centerLat, centerLng) {
userMarker = new google.maps.Marker({
position: { lat: centerLat, lng: centerLng },
map,
title: 'Your location',
zIndex: 1000,
icon: {
path: google.maps.SymbolPath.CIRCLE,
scale: 10,
fillColor: '#4285F4',
fillOpacity: 1,
strokeColor: '#ffffff',
strokeWeight: 3
}
});
}
onMount (async () => {
const centerLat = Number(lat);
const centerLng = Number(lng);
@@ -31,6 +50,8 @@
disableDefaultUI: true,
gestureHandling: 'greedy'
});
addUserLocationMarker(mapDiv, centerLat, centerLng);
});
// function to rended pins