Commit 5d538009 authored by Volker Krause's avatar Volker Krause

Fix opening the indoor map for elements that aren't location changes

parent 29edb542
......@@ -55,10 +55,12 @@ Item {
icon.name: "map-symbolic"
onClicked: {
var args = {placeName: place.name};
if (isRangeBegin) {
args = controller.departureMapArguments();
} else if (isRangeEnd) {
args = controller.arrivalMapArguments();
if (controller.isLocationChange) {
if (isRangeBegin) {
args = controller.departureMapArguments();
} else if (isRangeEnd) {
args = controller.arrivalMapArguments();
}
}
args.coordinate = Qt.point(place.geo.longitude, place.geo.latitude);
console.log(JSON.stringify(args));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment