Exemple #1
0
        private void Rebound()
        {
            List <PointF> pts = new List <PointF>();

            pts.Add(this.Center);
            PointF c  = NaviMapNetViewer.DegreesToMeters(Center);
            PointF p1 = new PointF((float)(c.X - SizeMeters_.Width / 2.0), (float)(c.Y - SizeMeters_.Height / 2.0));
            PointF p2 = new PointF((float)(c.X + SizeMeters_.Width / 2.0), (float)(c.Y + SizeMeters_.Height / 2.0));

            pts.Add(NaviMapNetViewer.MetersToDegrees(p1));
            pts.Add(NaviMapNetViewer.MetersToDegrees(p2));
            this.Points = pts.ToArray();
        }
Exemple #2
0
 public MapLayers(NaviMapNetViewer map)
 {
     this._Map = map;
 }