기록 선택 파란 마커 제거
This commit is contained in:
+3
-17
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user