|
|
|
@ -200,7 +200,7 @@ QGCView {
@@ -200,7 +200,7 @@ QGCView {
|
|
|
|
|
if (false /*homePositionManagerButton.checked*/) { |
|
|
|
|
//offlineHomePosition = coordinate |
|
|
|
|
} else if (addMissionItemsButton.checked) { |
|
|
|
|
var index = controller.addMissionItem(coordinate) |
|
|
|
|
var index = controller.insertMissionItem(coordinate, controller.missionItems.count) |
|
|
|
|
setCurrentItem(index) |
|
|
|
|
} else { |
|
|
|
|
editorMap.zoomLevel = editorMap.maxZoomLevel - 2 |
|
|
|
@ -288,10 +288,6 @@ QGCView {
@@ -288,10 +288,6 @@ QGCView {
|
|
|
|
|
} else { |
|
|
|
|
itemDragger.clearItem() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Move to the new position |
|
|
|
|
editorMap.latitude = object.coordinate.latitude |
|
|
|
|
editorMap.longitude = object.coordinate.longitude |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -374,6 +370,11 @@ QGCView {
@@ -374,6 +370,11 @@ QGCView {
|
|
|
|
|
itemDragger.clearItem() |
|
|
|
|
controller.removeAllMissionItems() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onInsert: { |
|
|
|
|
controller.insertMissionItem(editorMap.center, i) |
|
|
|
|
setCurrentItem(i) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} // ListView |
|
|
|
|
} // Item - Mission Item editor |
|
|
|
|