Skip to content

Commit

Permalink
fix qml argument injection
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Aug 17, 2024
1 parent 9dea4c2 commit fc83109
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gui/controls2_515/MapView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ MapPage {
provider: hillshadeProvider
}

onTap: {
onTap: function(screenX, screenY, lat, lon) {
mark.screenX = screenX;
mark.screenY = screenY;
mark.lat = lat;
Expand All @@ -174,7 +174,7 @@ MapPage {
}
}

onLongTap: {
onLongTap: function(screenX, screenY, lat, lon) {
mark.showOverlay = true;
mark.screenX = screenX;
mark.screenY = screenY;
Expand All @@ -189,7 +189,8 @@ MapPage {
}
}

onIconTapped: {
onIconTapped: function(screenCoord, lat, lon, databasePath, objectType, objectId, poiId, type,
name, altName, ref, operatorName, phone, website, openingHours) {
mark.showOverlay = false;
mark.screenX = screenCoord.x;
mark.screenY = screenCoord.y;
Expand Down

0 comments on commit fc83109

Please sign in to comment.