discostu
05-11-2005, 05:05 PM
Hi, right now I've got a few pins set up. I have a timer that goes through a vector of all these pins and does a GoTo() to center on that pin. What I'd like is for the view to glide across the map from one pin to the next. Is this possible? Does anyone know how to do it?
Thanks,
Stu
YPMapper
05-12-2005, 10:18 AM
Starting at point A, going to point B -
define or use existing locations between the two and and do a goto for each. Depending on the distance between A and B and the speed with which you want to "glide" you'll need more or less places in between. IMO, this works best using a polyline between A and B with a number of vertices that will produce your glide effect.
Wilfried
05-12-2005, 11:55 AM
Hi,
You have lat/long position of puspin now in center. You calculate direction and distance for second pushpin. Then you have a vector. All you need to do then is divide the vector in the distance (steps) you wants to glide, calculate the position for each step and GotoLatLong to each position.
discostu
05-12-2005, 12:14 PM
Ok, thanks for your help! :)
How do I get the lat/long of a pushpin? I placed the pushpin by finding a location through an address with FindAddressResults. This is with an MFC app using C++. The classes CLocation and CPushpin don't seem to have any methods that return floats or something with lat/long in a primitive number type.