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

Martin Kampas martin.kampas at tieto.com
Tue Nov 26 08:09:04 UTC 2013


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131126/7e444857/attachment.html>


More information about the Devel mailing list