<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container">-------- Исходное сообщение
--------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Тема: </th>
<td>Show several dataLayers in QML</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Дата: </th>
<td>Wed, 27 Mar 2013 11:18:39 +0400</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">От: </th>
<td>Oleg Lyubimov <a class="moz-txt-link-rfc2396E" href="mailto:lyubimov.o.e@gmail.com"><lyubimov.o.e@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Кому: </th>
<td>Marble <a class="moz-txt-link-rfc2396E" href="mailto:marble-devel@kde.org"><marble-devel@kde.org></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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.
</pre>
<br>
</div>
<br>
</body>
</html>