how to zoom map based on polygon

Topics: General, Windows Forms
Jun 29, 2013 at 10:37 PM
Hi Radioman,

I need to fit map to certain polygon. I know that SetZoomToFitRect (rect) is used to fit map , but it needs a rect. Are there any function that accept the polygon itself , OR , I shall do my algorithm to get the boundaries of this polygon.

P.S. I have checked also polygon to see if it has a polygon.Boundary function that return the rectangle of this polygon , but I did not find such.

Please advice.
Jul 1, 2013 at 7:42 AM
yeah, just make some function like with the routes..
Jul 1, 2013 at 7:57 AM
..actually you can use map.ZoomAndCenterRoute it uses the same base class
Jul 1, 2013 at 9:21 PM
It works fine... ZoomAndCenterRoute ...

Thanks Radioman.