findmydevice 재생 중 얼굴 마커만 표시

This commit is contained in:
seo
2026-07-10 20:22:14 +09:00
parent 93b41b2edb
commit 2e93c4151f
+20 -6
View File
@@ -1907,6 +1907,9 @@ function stopHistoryPlayback() {
clearInterval(mapState.playbackTimer); clearInterval(mapState.playbackTimer);
mapState.playbackTimer = null; mapState.playbackTimer = null;
} }
if (mapState.playbackMarker) {
mapState.playbackMarker.setMap(null);
}
if (!_overrideRange) { if (!_overrideRange) {
setCurrentLocationVisible(true); setCurrentLocationVisible(true);
} }
@@ -1935,14 +1938,19 @@ function startHistoryPlayback(speed) {
mapState.playbackIndex = 0; mapState.playbackIndex = 0;
} }
if (mapState.playbackMarker) {
mapState.playbackMarker.setMap(null);
}
moveSelectedHistoryPoint(mapState.playbackIndex, false); moveSelectedHistoryPoint(mapState.playbackIndex, false);
if (mapState.playbackMarker) { if (!mapState.playbackMarker) {
mapState.playbackMarker = new naver.maps.Marker({
position: points[mapState.playbackIndex].latlng,
map: mapState.map,
zIndex: 120,
icon: createFaceMarkerIcon()
});
} else {
mapState.playbackMarker.setMap(mapState.map); mapState.playbackMarker.setMap(mapState.map);
mapState.playbackMarker.setPosition(points[mapState.playbackIndex].latlng); mapState.playbackMarker.setPosition(points[mapState.playbackIndex].latlng);
mapState.playbackMarker.setIcon(createFaceMarkerIcon());
} }
let tick = 0; let tick = 0;
@@ -2060,12 +2068,18 @@ function moveSelectedHistoryPoint(index, pan = false, syncSlider = true) {
position: point.latlng, position: point.latlng,
map: mapState.map, map: mapState.map,
zIndex: 115, zIndex: 115,
icon: createFaceMarkerIcon() icon: {
content: '<div class="history-selected-marker"></div>',
anchor: new naver.maps.Point(10, 10)
}
}); });
} else { } else {
mapState.selectedMarker.setMap(mapState.map); mapState.selectedMarker.setMap(mapState.map);
mapState.selectedMarker.setPosition(point.latlng); mapState.selectedMarker.setPosition(point.latlng);
mapState.selectedMarker.setIcon(createFaceMarkerIcon()); mapState.selectedMarker.setIcon({
content: '<div class="history-selected-marker"></div>',
anchor: new naver.maps.Point(10, 10)
});
} }
if (mapState.playbackMarker) { if (mapState.playbackMarker) {
mapState.playbackMarker.setPosition(point.latlng); mapState.playbackMarker.setPosition(point.latlng);