[Marble-devel] Show several dataLayers in QML

Oleg Lyubimov lyubimov.o.e at gmail.com
Mon Apr 1 07:08:58 UTC 2013


-------- Исходное сообщение --------
Тема: 	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.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20130401/b34655c6/attachment.html>


More information about the Marble-devel mailing list