Commit 8448ec65 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5574 from DonLakeFlyer/CustomMapItems

CustomMapItems: Fix object creation
parents c208d174 fa2a2ae6
...@@ -32,7 +32,7 @@ Item { ...@@ -32,7 +32,7 @@ Item {
if (controlUrl != "") { if (controlUrl != "") {
var component = Qt.createComponent(controlUrl); var component = Qt.createComponent(controlUrl);
if (component.status == Component.Ready) { if (component.status == Component.Ready) {
_customObject = _customComponent.createObject(map, { "vehicle": vehicle }); _customObject = component.createObject(map, { "customMapObject": object })
if (_customObject) { if (_customObject) {
map.addMapItem(_customObject) map.addMapItem(_customObject)
} }
......
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