What is the best way to zoom to a group of points and also a single point? I have this code, but it doesnt always seem to work when there is only 1 point in the list. Any tips?
Dim inclusiveExtent As New ESRI.ArcGIS.Client.Geometry.Envelope With {.SpatialReference = esriMap.SpatialReference}
Dim mp As ESRI.ArcGIS.Client.Geometry.MapPoint
For Each pt As Point In pPoints
mp = mercator.FromGeographic(New ESRI.ArcGIS.Client.Geometry.MapPoint(pt.X, pt.Y))
inclusiveExtent = inclusiveExtent.Union(mp.Extent)
'esriMap.ZoomToResolution(esriMap.Resolution )
Next
esriMap.ZoomTo(inclusiveExtent)