www.sdlsuite.com Forum Index www.sdlsuite.com
Discussion of technical aspects of the SDL Component Suite
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GeoPack
View previous topic :: View next topic  
Author Message

Joined: 07 Sep 2011
Posts: 42
Location: Maasland, The Netherlands

PostPosted: Fri Jul 25, 2014 9:53 pm    Post subject: TGeoMap.BringLocationToCenter Reply with quote

Finally this week I found time move up to using XE4 and this also meant upgrading all our SDL components including Geomap.

After that I compiled our project and noticed that when I switch maps (from small to higher scale) and try to bring the previous position to the center of the screen I sometimes get an offset. I used Beyond Compare to find the differences and found some changes in the function:

In the previous version of TGeomap I used there was a check for FConfinePan. In the new version this check is not there any more. I restored this check and now BringLocationToCenter works fine in all situations. The offset came to be when FConfinePan was false. Now that the check is there again all works fine.

Can you explain why this check was left out?

  if FConfinePan then
         ... some calculations

See also my other post of some time ago in which I pointed out that FConfinePan was always true. My suggestion in that post was taken over and is now part of TGeomap. Thus FConfinePan now can be true or false and as I experience the check in BringLocationToCenter also has a purpose and I think should stay there?


Jaap van Goor
Promanent b.v.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GeoPack All times are GMT + 1 Hour
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group