.NET Development: Zooming the Map Control to a Bounding Box
1 to 2 of 2
-
- CommentAuthorBrian - HOM
- CommentTimeNov 22nd 2011 edited
Base on what I have read in the documentation I should be able to create a bounding box and a number of coordinates to it and then set the map control to use it as the zoom with a buffer around the box. When I do this it simply zooms to the last coordinate added to the bounding box. Am I missing something?
Simplified Like this:
BoundingBox bb = new BoundingBox();
foreach (LatLon Coordinate in <List of Coordinates>)
{
bb.Add(Coordinate);
}
mapCtrl1.Map.ZoomToBoundingBox(bb, 10);
mapCtrl1.Invalidate(); -
- CommentAuthorBrian - HOM
- CommentTimeNov 22nd 2011
Never mind...that does work. It helps when you use the right object.
I had to nearly identical LatLon objects and just noticed that I was using the latest geocoded address over and over rather than individuals from the list of LatLon objects...
1 to 2 of 2
