Get extent from shapes

Last post 9/18/2008 1:28:07 AM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
9/9/2008 2:54:10 PM
mobchase

Get extent from shapes

I'm trying to get the viewable extent from the pushpins I plot on the map.  In the MS VE version I was able to do it using the latlong <list> and do a Map1.SetMapView(lstData);  How do I go about doing it with this control?  I see the MapView is looking for a rectangle but how do I set the points xy, xx, yx, yy at the time of creating a pushpin?  Is there a better way to do this?

thanks

rich

9/18/2008 1:28:07 AM
Chris Pietschmann

Re:Get extent from shapes

There is a method described in the following thread on how to use SetMapView on the client-side to center the map on the best view for the currently plotted shapes:

http://simplovation.com/forums/t/01afa2ff-8bc2-4842-9cbb-a67586d00b6b.aspx