Hi Peter

it is not that easy. IMap::draw()  is just the default implementation and has 
to be overwritten by each object derived from IMap. As map drawing is a highly 
individual task for each map format, the draw method's implementation differs 
for each each one of the CMap... implementations.

Basically they all draw on either on IMap::pixBuffer or IMap::imgBuffer, 
depending if the drawing is done in a thread or not. Thus if you rotate the 
QPainter that operates on this buffer you should be more or less fine. However 
as a caveat the borders of the map will not match. You could work around this 
by making the buffer large enough to make the viewport  always part of the map 
rectangle, regardless of the rotation. As a drawback map rending will slow down.

Imho QLGT is not really made for off road navigation. Applications like Locus 
are much better suited for that.

Oliver


-------- Original-Nachricht --------
> Datum: Thu, 27 Sep 2012 23:21:14 +0200
> Von: Peter Schumann <[email protected]>
> An: [email protected]
> Betreff: [Qlandkartegt-users] Feature -> rotating map to heading during       
> LiveLog

> Hi,
> 
> i want to use QLGT for off road navigation. It would be very useful if 
> the map rotates with the gps heading.
> 
> Where is a good starting point to implement this behavior in a map type 
> generic way? I've taken a look at the code, maybe extending IMap::draw() 
> with an angle parameter?
> 
> Peter
> 
> 
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Qlandkartegt-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to