private void btnSetStartPoint_Click(JaguarCtrl jc, object sender, EventArgs e) { cam = new CameraInfoGE(); double centerLat = double.Parse(centerLatitude); double centerLong = double.Parse(centerLongitude); try { centerLat = double.Parse(jc.txtStartLat.Text); } catch { } try { centerLong = double.Parse(jc.txtStartLong.Text); } catch { } centerLat = (centerLat > 90 ? 90 : centerLat); centerLat = (centerLat < -90 ? -90 : centerLat); centerLong = (centerLong > 180 ? 180 : centerLong); centerLong = (centerLong < -180 ? -180 : centerLong); cam.FocusPointLatitude = centerLat; cam.FocusPointLongitude = centerLong; cam.FocusPointAltitude = 0; cam.Range = cameraRange; cam.Tilt = 0; googleEarth.SetCamera(cam, 0.6); }