CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Map "panto" feature

by c.schwoerer » 14 Feb 2018 10:05

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...
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09

by Alexander Bulei » 14 Feb 2018 15:05

Hi c.schwoerer,

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

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by c.schwoerer » 15 Feb 2018 09:58

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.
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09

by Alexander Bulei » 16 Feb 2018 17:47

Hi c.schwoerer,

Implemented in 4.1.0.21.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQGMap3

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.