diff --git a/src/FlightMap/MapItems/CustomMapItems.qml b/src/FlightMap/MapItems/CustomMapItems.qml index 1c00c1e00b938e9a00ef8c58ba445647c0c0e0c7..11509da592675e8a14283e4e6d2ec259d42bcf7f 100644 --- a/src/FlightMap/MapItems/CustomMapItems.qml +++ b/src/FlightMap/MapItems/CustomMapItems.qml @@ -32,7 +32,7 @@ Item { if (controlUrl != "") { var component = Qt.createComponent(controlUrl); if (component.status == Component.Ready) { - _customObject = _customComponent.createObject(map, { "vehicle": vehicle }); + _customObject = component.createObject(map, { "customMapObject": object }) if (_customObject) { map.addMapItem(_customObject) }