Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-08 Thread Kishore J
Resending to the group instead... On Thu, Sep 8, 2016 at 5:49 PM, Kishore J wrote: > Surprising! Can you test if the following code works? You should see one > yellow circle. But do you also see 2 black and 2 blue circles? I dont see > them here unless i uncomment the addMapItem lines > > /*

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-08 Thread Paolo Angelelli
It is odd since i tried to correct your code and then it was working form me. But feel free to open a bugreport with some sample code that can be built and run to demonstrate the problem :-) best, Paolo On Thu, 8 Sep 2016 10:04:27 +0530 Kishore J wrote: > Thanks! I understand how that can be an

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-07 Thread Kishore J
Thanks! I understand how that can be an issue. However, I now removed the enclosing Component (Which really did not do anything). Still, if i do not call addMapItem() it does not show on the map. -- Regards, Kishore On Wed, Sep 7, 2016 at 7:45 PM, Paolo Angelelli wrote: > I see i forgot to answe

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-07 Thread Paolo Angelelli
I see i forgot to answer one question, about delegates and addMapItem. The problem in your case is that your delegate is incorrect. The delegate of a MapItemView must be a Map Item subclass, that means MapCircle MapRectangle MapPolygon etc. If you have it wrapped into a Component, when this compo

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-07 Thread Paolo Angelelli
Thanks for the suggestion, now it's easier not to forget about it :-) As for the patch i mentioned, that was related to the map center issue you reported. Patch being: https://codereview.qt-project.org/168204 (now merged in 5.7) best, Paolo On Tue, 6 Sep 2016 22:53:31 +0530 Kishore J wrote: >

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-06 Thread Kishore J
Done. https://bugreports.qt.io/browse/QTBUG-55782 Given the limitation, I think my immediate alternative is to create a MapItemView like component that is instantiated outside and write code in the map that calls addMapItem and removeMapItem on the map as and when the list is modified. To the draw

Re: [Interest] How to dynamically add a MapItemView to a Map?

2016-09-06 Thread Paolo Angelelli
On Tue, 6 Sep 2016 19:04:34 +0530 Kishore J wrote: > Hi > > I am inching forward with using QML maps in my C++ application. Now > i'm interested in dynamically adding multiple MapItemView objects to > a given map. > > > import QtQuick 2.5 > import QtLocation 5.6 > > Map { > id: map >

[Interest] How to dynamically add a MapItemView to a Map?

2016-09-06 Thread Kishore J
Hi I am inching forward with using QML maps in my C++ application. Now i'm interested in dynamically adding multiple MapItemView objects to a given map. import QtQuick 2.5 import QtLocation 5.6 Map { id: map objectName: "MyMap" // zoomLevel: (maximumZoomLevel - minimumZoomLevel)/2