Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-26 Thread Martin Kampas
Again lying - it is used in the same object, this will not work. 2x sorry :) I 
should sleep more.

Martin

On Tuesday, November 26, 2013 09:02:19 AM Martin Kampas wrote:
> Not true - I overlooked the condition. sorry. Still you can implement your
> own version of QDeclarativeGeoMapItemBase::zoomLevelOpacity() 
directly
> in your app so that linker will meet this first.. :)
> 
> BR,
> Martin
> 
> On Tuesday, November 26, 2013 08:56:12 AM Martin Kampas wrote:
> > Hi,
> > 
> > you might be able to modify this behavior through overriding
> > QDeclarativeGeoMapItemBase::updateMapItemPaintNode()
> 
> 
https://qt.gitorious.org/qt/qtlocation/commit/523ebec5dca356e7ddf24792
> 
> > d9f6d2994a57599a
> > 
> > BR,
> > Martin
> > 
> > On Tuesday, November 26, 2013 08:21:52 AM tw_bolek wrote:
> > > Hi Aaron,
> > > 
> > > > You are not doing anything wrong. As you discovered items are 
only
> > 
> > visible
> > 
> > > > when the map zoom level is greater than 3. Between zoom levels 
2
> 
> and
> 
> > 3 the
> > 
> > > > opacity is ramped down linearly and is 0 below a zoom level of 2. 
See
> > > > https://bugreports.qt-project.org/browse/QTBUG-25393 for details
> 
> on
> 
> > why
> > 
> > > > this was implemented.
> > > 
> > > Thank you very much. But does it mean that I cannot show any 
objects
> 
> in
> 
> > > zoomLevel 1?  Are there no workarounds for this?   Let's say that I
> 
> need
> 
> > to
> > 
> > > show a full cruise of a ship between two distant continents - I want 
to
> > > show it over the whole world map visible at once, i.e. zoom level 1, 
so
> > > that the user does not have to scroll the map all around to see the
> > 
> > whole
> > 
> > > route...  Zoom level 3 where the items become visible is of no use - 
it
> > > only fits a very small part of the what I need to show at once...
> > > Everything worked so well in Qt4.8/QtMobility.location 1.2
> > > 
> > > Many thanks, bolek
> > > ___
> > > SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-26 Thread Martin Kampas
Not true - I overlooked the condition. sorry. Still you can implement your 
own version of QDeclarativeGeoMapItemBase::zoomLevelOpacity() directly 
in your app so that linker will meet this first.. :)

BR,
Martin

On Tuesday, November 26, 2013 08:56:12 AM Martin Kampas wrote:
> Hi,
> 
> you might be able to modify this behavior through overriding
> QDeclarativeGeoMapItemBase::updateMapItemPaintNode()
> 
> 
https://qt.gitorious.org/qt/qtlocation/commit/523ebec5dca356e7ddf24792
> d9f6d2994a57599a
> 
> BR,
> Martin
> 
> On Tuesday, November 26, 2013 08:21:52 AM tw_bolek wrote:
> > Hi Aaron,
> > 
> > > You are not doing anything wrong. As you discovered items are only
> 
> visible
> 
> > > when the map zoom level is greater than 3. Between zoom levels 2 
and
> 
> 3 the
> 
> > > opacity is ramped down linearly and is 0 below a zoom level of 2. See
> > > https://bugreports.qt-project.org/browse/QTBUG-25393 for details 
on
> 
> why
> 
> > > this was implemented.
> > 
> > Thank you very much. But does it mean that I cannot show any objects 
in
> > zoomLevel 1?  Are there no workarounds for this?   Let's say that I 
need
> 
> to
> 
> > show a full cruise of a ship between two distant continents - I want to
> > show it over the whole world map visible at once, i.e. zoom level 1, so
> > that the user does not have to scroll the map all around to see the
> 
> whole
> 
> > route...  Zoom level 3 where the items become visible is of no use - it
> > only fits a very small part of the what I need to show at once...
> > Everything worked so well in Qt4.8/QtMobility.location 1.2
> > 
> > Many thanks, bolek
> > ___
> > SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread Martin Kampas
Hi,

you might be able to modify this behavior through overriding 
QDeclarativeGeoMapItemBase::updateMapItemPaintNode()

https://qt.gitorious.org/qt/qtlocation/commit/523ebec5dca356e7ddf24792
d9f6d2994a57599a

BR,
Martin

On Tuesday, November 26, 2013 08:21:52 AM tw_bolek wrote:
> Hi Aaron,
> 
> > You are not doing anything wrong. As you discovered items are only 
visible
> > when the map zoom level is greater than 3. Between zoom levels 2 and 
3 the
> > opacity is ramped down linearly and is 0 below a zoom level of 2. See
> > https://bugreports.qt-project.org/browse/QTBUG-25393 for details on 
why
> > this was implemented.
> 
> Thank you very much. But does it mean that I cannot show any objects in
> zoomLevel 1?  Are there no workarounds for this?   Let's say that I need 
to
> show a full cruise of a ship between two distant continents - I want to
> show it over the whole world map visible at once, i.e. zoom level 1, so
> that the user does not have to scroll the map all around to see the 
whole
> route...  Zoom level 3 where the items become visible is of no use - it
> only fits a very small part of the what I need to show at once...   
> Everything worked so well in Qt4.8/QtMobility.location 1.2
> 
> Many thanks, bolek
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread Aaron McCarthy
Hi,

On Tue, 26 Nov 2013 08:21:52 tw_bolek wrote:
> > You are not doing anything wrong. As you discovered items are only visible
> > when the map zoom level is greater than 3. Between zoom levels 2 and 3 the
> > opacity is ramped down linearly and is 0 below a zoom level of 2. See
> > https://bugreports.qt-project.org/browse/QTBUG-25393 for details on why
> > this was implemented.
> 
> Thank you very much. But does it mean that I cannot show any objects in
> zoomLevel 1?  Are there no workarounds for this?   Let's say that I need to
> show a full cruise of a ship between two distant continents - I want to
> show it over the whole world map visible at once, i.e. zoom level 1, so
> that the user does not have to scroll the map all around to see the whole
> route...  Zoom level 3 where the items become visible is of no use - it
> only fits a very small part of the what I need to show at once...   
> Everything worked so well in Qt4.8/QtMobility.location 1.2

Unfortunately from the looks of the implementation there is no work around for 
this.

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread tw_bolek
Hi Aaron,

> You are not doing anything wrong. As you discovered items are only visible 
> when the map zoom level is greater than 3. Between zoom levels 2 and 3 the 
> opacity is ramped down linearly and is 0 below a zoom level of 2. See 
> https://bugreports.qt-project.org/browse/QTBUG-25393 for details on why this 
> was implemented.


Thank you very much. But does it mean that I cannot show any objects in 
zoomLevel 1?  Are there no workarounds for this?   Let's say that I need to 
show a full cruise of a ship between two distant continents - I want to show it 
over the whole world map visible at once, i.e. zoom level 1, so that the user 
does not have to scroll the map all around to see the whole route...  Zoom 
level 3 where the items become visible is of no use - it only fits a very small 
part of the what I need to show at once...Everything worked so well in 
Qt4.8/QtMobility.location 1.2

Many thanks, bolek
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread Aaron McCarthy
On Mon, 25 Nov 2013 17:36:24 tw_bolek wrote:
> In my application I use a map (QtLocation 5.0, Map, OSM or Nokia plugin) and
> I need to show certain overlay objects on it.  The map itself works fine
> (both with OSM and Nokia plugin), the problem is that objects over it are
> shown only if zoomLevel is 3 or more.  No matter if I use an Image within
> MapQuickItem, or MapCircle, or whatever else, the objects become visible
> only if the zoomLevel is at least 3.  On zoomLevel 0-2 only plain map is
> shown, no objects at all...
> 
> I use the MapQuickItem image without rescalling (i.e. its size is the same
> in all zoomLevels), I also tried with really huge MapCircle (like 500 km
> radius), so it's not that in zoomLevel 0-2 the objects are too small to be
> seen, they just AREN'T THERE.

They are there you just can't see them :)

> A bug, a feature, or am I doing something wrong?

You are not doing anything wrong. As you discovered items are only visible 
when the map zoom level is greater than 3. Between zoom levels 2 and 3 the 
opacity is ramped down linearly and is 0 below a zoom level of 2. See 
https://bugreports.qt-project.org/browse/QTBUG-25393 for details on why this 
was implemented.

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


[SailfishDevel] No map overlay objects shown if zoomLevel < 3

2013-11-25 Thread tw_bolek
Hi guys,

In my application I use a map (QtLocation 5.0, Map, OSM or Nokia plugin) and I 
need to show certain overlay objects on it.  The map itself works fine (both 
with OSM and Nokia plugin), the problem is that objects over it are shown only 
if zoomLevel is 3 or more.  No matter if I use an Image within MapQuickItem, or 
MapCircle, or whatever else, the objects become visible only if the zoomLevel 
is at least 3.  On zoomLevel 0-2 only plain map is shown, no objects at all...

I use the MapQuickItem image without rescalling (i.e. its size is the same in 
all zoomLevels), I also tried with really huge MapCircle (like 500 km radius), 
so it's not that in zoomLevel 0-2 the objects are too small to be seen, they 
just AREN'T THERE.

A bug, a feature, or am I doing something wrong?

Thanks, Bolek
___
SailfishOS.org Devel mailing list