Joined: 07 Sep 2011
Location: Maasland, The Netherlands
|Posted: Fri Jul 25, 2014 9:53 pm Post subject: TGeoMap.BringLocationToCenter
|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