Zoom Out to see entire route

May 27, 2010 at 1:40 AM

First of all awesome work!!! I just started using your control and am wowed by it!

Two questions:

1) I have a route that can span 2000 miles. Is there a way to zoom out far enough to see all points? In your demo (WPF), you have the min/max zoom set to @5 and 17 respectively. Maybe I am not entirely understanding -- but I'd like to automatically Zoom out far enough to see the entire route -- or at least some of my points that are quite far apart.  Thoughts on how to do this?

2) Also, when I use AddRoute, the route line isn't even close to either a straight line or a great circle. Am I doing something wrong -- or is there a way to get a smoother looking line between points or to override the drawing of the route line to do it myself?

Thanks so much!!! Brilliant work! Am looking forward to digging into it.

May 27, 2010 at 8:55 AM

1) get bounds of route points, and use function MainMap.SetZoomToFitRect

2) route is route, if you want direct line, use only two points, circle would require some custom algorithm

p.s. are you trying to connect some cities on the earth? ;}


May 27, 2010 at 3:19 PM

Thanks so much!!! This stuff ROCKS!

Didn't you know, it's a small world out there!!!!


May 27, 2010 at 5:14 PM

..but i live in the stars, energize! ;}