I would like to load a Map component in background with a Loader only when the visible Map property is true. Moreover, I need to access the Map center property. How can create a property alias to the Map center property when the Map is loaded with a Loader?

Map2.qml:
Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.3
  3. import QtLocation 5.5
  4. import QtPositioning 5.3
  5.  
  6. Item {
  7. id: root
  8.  
  9. property alias center: ?????
  10.  
  11. Loader {
  12. anchors.fill: parent
  13. id: mapLoader
  14. active: root.visible
  15. sourceComponent: cMap
  16. }
  17. Component {
  18. id: cMap
  19. Item {
  20. anchors.fill: parent
  21. Slider {
  22. id: zoomSlider;
  23. z: map.z + 3
  24. minimumValue: map.minimumZoomLevel;
  25. maximumValue: map.maximumZoomLevel;
  26. anchors.margins: 10
  27. anchors.bottom: parent.bottom
  28. anchors.top: parent.top
  29. anchors.right: parent.right
  30. orientation : Qt.Vertical
  31. value: map.zoomLevel
  32. onValueChanged: {
  33. map.zoomLevel = value
  34. }
  35. }
  36. Map {
  37. id: map
  38. anchors.fill: parent
  39. plugin: osmPlugin
  40. zoomLevel: 7
  41. }
  42. Plugin {
  43. id: osmPlugin
  44. name: "osm"
  45. }
  46.  
  47. }
  48. }
  49. }
To copy to clipboard, switch view to plain text mode 

Using on another qml:
...
Qt Code:
  1. Map2 {
  2. visible: cbMap.checked
  3. center: QtPositioning.coordinate(1.759767, 1.864124)
  4. }
To copy to clipboard, switch view to plain text mode 
...