기록 선택 파란 마커 제거

This commit is contained in:
seo
2026-07-12 06:38:11 +09:00
parent 6302030d4d
commit 4fdfa65913
2 changed files with 4 additions and 18 deletions
+3 -17
View File
@@ -2115,23 +2115,9 @@ function moveSelectedHistoryPoint(index, pan = false, syncSlider = true) {
const point = points[safeIndex];
mapState.playbackIndex = safeIndex;
if (!mapState.selectedMarker) {
mapState.selectedMarker = new naver.maps.Marker({
position: point.latlng,
map: mapState.map,
zIndex: 115,
icon: {
content: '<div class="history-selected-marker"></div>',
anchor: new naver.maps.Point(10, 10)
}
});
} else {
mapState.selectedMarker.setMap(mapState.map);
mapState.selectedMarker.setPosition(point.latlng);
mapState.selectedMarker.setIcon({
content: '<div class="history-selected-marker"></div>',
anchor: new naver.maps.Point(10, 10)
});
if (mapState.selectedMarker) {
mapState.selectedMarker.setMap(null);
mapState.selectedMarker = null;
}
if (mapState.playbackMarker) {
mapState.playbackMarker.setPosition(point.latlng);