private void Zoom(double amount) { IExtents2D ext = (IExtents2D)MapView.ViewEnvelope.Clone(); double dx, dy; dx = ext.Width * amount / 2; dy = ext.Height * amount / 2; ICoordinate2D c = (ICoordinate2D)ext.Center; MapView.ZoomToWorldBounds(ext.Factory.CreateExtents2D(c.X - dx, c.Y - dy, c.X + dx, c.Y + dy)); }
protected virtual void SetEmpty() { _coord = null; _hasValue = false; }
/// <summary> /// Initializes a new Point /// </summary> /// <param name="coordinate">The coordinate used to define the point.</param> internal protected Point(ICoordinate coordinate) { _coord = coordinate as ICoordinate2D; SetNotEmpty(); }
/// <summary> /// Initializes a new Point /// </summary> /// <param name="x">X coordinate</param> /// <param name="y">Y coordinate</param> internal protected Point(GeometryFactory factory, Double x, Double y) { _coord = (ICoordinate2D)factory.CoordinateFactory.Create(x, y); Factory = factory; SetNotEmpty(); }