Page 1 of 1

Map "panto" feature

PostPosted: 14 Feb 2018 10:05
by c.schwoerer
Hello,
in the google maps API in the map class it is possible to "pan to" a coordinate.
Like this: map.panTo(latLng);

This much smoother than to set a center like this:
IWCGJQGMap31.JQGMapV3Options.Map.Options.Center.Latitude:=newLat;
IWCGJQGMap31.JQGMapV3Options.Map.Options.Center.Longitude:=newLng;

If it possipble to use this feature? And how can I do that?

Thank's for your help...

Re: Map "panto" feature

PostPosted: 14 Feb 2018 15:05
by Alexander Bulei
Hi c.schwoerer,

There is no need to add it...moreover, the code do internal tranformation into google LatLng class.

Best Regards.

Re: Map "panto" feature

PostPosted: 15 Feb 2018 09:58
by c.schwoerer
Hi Alexeander,
thanks for reply,

There is a difference between "setcenter" and "panto"
setCenter(latlng:LatLng|LatLngLiteral):
Changes the center of the map to the given LatLng. Just jumps to the new piont.

panTo(latLng:LatLng|LatLngLiteral):
Changes the center of the map to the given LatLng. If the change is less than both the width and height of the map, the transition will be smoothly animated.

Re: Map "panto" feature

PostPosted: 16 Feb 2018 17:47
by Alexander Bulei
Hi c.schwoerer,

Implemented in 4.1.0.21.

Best Regards.