Zooming make map dragging not working anymore

Topics: Bugs
Jul 17, 2012 at 12:45 PM

If you zoom between a integer, like 16.5 the map dragging is not working anymore, and we see the border of each title.

Jul 17, 2012 at 12:53 PM

i know ;}

Jul 17, 2012 at 12:55 PM

oh, hmm, any idea where to start for try to fix it? I'll try :)


btw, I think I found a way for "fix" the rotation, see my code in issue tracker

Jul 17, 2012 at 1:35 PM

well it's related to rotation too, it should work in between integer zooms ;}

Jul 17, 2012 at 1:50 PM

yeah it will work between integer, because it will not use MapRenderTransform :) but since the way a "fix" the rotation on my side was only to resettransform between the draw of the map and the overlays, I don't know how it can be related (but i'm not sure since I don't know all your programmation :) ), if we take only the "title" problem at first, it seem to be in the function DrawMap, after the ScaleTransform

Jul 17, 2012 at 2:10 PM
Edited Jul 17, 2012 at 3:06 PM

okay, you need to add

                     if (Core.tileRectBearing.Size == Core.tileRect.Size)
                         Core.tileRectBearing = Core.tileRect;
                         Core.tileRectBearing.Inflate(1, 1);


and  Core.tileRectBearing = Core.tileRect; for the else

in the zoom function too, now the title are nice.

Jul 17, 2012 at 3:07 PM

hmm, for the "dragging", the problem seem to be around Core.tileRect.OffsetNegative(Core.compensationOffset); I presume the transform ratio need to be applied on this value... but can't figure it for now, any idea?