Hi,
I get the following exception when I try to reset my map extents:
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at ThinkGeo.MapSuite.DesktopEdition.WpfMap.xfbd15a0e9d15f4e2(Graphics x783a718028818269, RectangleShape xb35a33b423b17f65)
at ThinkGeo.MapSuite.DesktopEdition.WpfMap.x7d52d0ad1d6779cd(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e)
private void ResetExtents() {
layer.Open();
wpfMap1.CurrentExtent = layer.FeatureSource.GetBoundingBox();
wpfMap1.CenterAt(layer.GetBoundingBox().GetCenterPoint());
layer.Close();
}
here are the values I'm supplying:
layer.GetBoundingBox().GetCenterPoint() = -93.9375495910645,32.2573108673095,0
layer.FeatureSource.GetBoundingBox() = -94.0427372387695,32.3991367749023,-93.8323619433594,32.1154849597168
Any ideas?
Thanks,
Greg