[Marble-devel] Show several dataLayers in QML
Dennis Nienhüser
earthwings at gentoo.org
Wed Apr 3 20:59:20 UTC 2013
Hi Oleg,
thanks for reporting, fixed now as noted in
https://bugs.kde.org/show_bug.cgi?id=317719
Regards,
Dennis
On 01.04.2013 09:08, Oleg Lyubimov wrote:
>
> -------- Исходное сообщение --------
> Тема: Show several dataLayers in QML
> Дата: Wed, 27 Mar 2013 11:18:39 +0400
> От: Oleg Lyubimov <lyubimov.o.e at gmail.com>
> Кому: Marble <marble-devel at kde.org>
>
>
>
> 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.
>
>
>
>
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel
More information about the Marble-devel
mailing list