[Marble-devel] Show several dataLayers in QML
Oleg Lyubimov
lyubimov.o.e at gmail.com
Wed Mar 27 07:18:39 UTC 2013
Dear marble developers.
I write a QML application, which uses MarbleDeclarativeWidget's
dataLayers, and I have a problem: my application shows only one data
layer and can't shows several data layers on the map simultaneously.
Have anybody faces with this problem? Are there any another methods to
declare and show several dataLayers in QML?
I declare dataLayers using following method:
dataLayers: [
///////// 1-й cлой //////////////////
DataLayer{
id: dataLayer
model: komoModel
numberOfItems: 1000
delegate: MobileItemDelegate{
id: itemDelegate
width: 32
height: 52
text: item.itemID
.
.
.
}
}
,
///////// 2-й cлой //////////////////
DataLayer{
id: dataLayer2
model: komoModel_1
numberOfItems: 1000
delegate: MobileItemDelegate{
id: itemDelegate2
width: 32
height: 52
text: item.itemID
.
.
.
}
},
////////// 3-й слой ////////////////////////////
DataLayer{
id: dataLayer3
model: komoModel_2
numberOfItems: 1000
delegate: MobileItemDelegate{
id: itemDelegate3
width: 32
height: 52
text: item.itemID
.
.
.
}
}
//////////// Конец ////////////////////////////
]
Thanks in advance
BR. Oleg Lyubimov.
More information about the Marble-devel
mailing list