Skip to content

Commit

Permalink
selection of point for computation of distance
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Jul 16, 2024
1 parent e1ec137 commit bea1bd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/geotagging.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ function addObjectMarker(_id, _isVisible, lat, lon) {
}
marker.on('click', function(e) {
mapWidget.objectClicked(marker.options.id)
lastSelected = marker.options.id
console.log("mapWidget.objectClicked("+marker.options.id+")")
});
// marker.on('dragstart',function() { // 'dragstart'
Expand Down Expand Up @@ -697,6 +698,7 @@ function addCameraMarker(iid, isVisible, lat, lon, direction, angle_of_view) {
}
marker.on('click', function(e) {
mapWidget.markerClicked(marker.options.id)
lastSelected = marker.options.id
console.log("mapWidget.marker(" + marker.options.id + ")")
});
marker.on('dragstart',function() { // 'dragstart'
Expand All @@ -722,12 +724,12 @@ function markerOrObjectSelected(id, isSelected, markersVisible) {
if (id === -1) {
return;
}
lastSelected = id;

for (var i in cameraMarkers) {
if (cameraMarkers[i].options.id === id) {

if (isSelected) {
lastSelected = id;
map.panTo(cameraMarkers[i].getLatLng());

cameraMarkers[i].setIcon(marker_camera_selected);
Expand Down

0 comments on commit bea1bd8

Please sign in to comment.