Commit fa2a2ae6 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix object creation

parent c208d174
...@@ -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