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 

TGeoMap.BringLocationToCenter

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



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

PostPosted: Fri Jul 25, 2014 8: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:
TGeoMap.BringLocationToCenter

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?

Code:
  if FConfinePan then
    begin
         ... some calculations
    end;


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?

Greetings,

Jaap
_________________
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