zoukankan      html  css  js  c++  java
  • Silverlight地图


    上面的线路是代码添加的。想实现动画的效果。可惜没搞出来啊。像火炬路线图那样源码下载,该程序参照silverlightairlines

    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using System.Collections.Generic;

    namespace slChinaMapWeb
    {
        public class City
        {
            public City(string name, Point point)
            {
                _name = name;
                _point = point;
            }
            string _name;
            public string Name
            {
                get { return _name; }
                set { _name = value; }
            }
            public int ID { get; set; }
            Point _point;
            public Point Point
            {
                get {  return _point; }
            }
            public Point OffsetCumulative
            {
                get {
                    Point p = new Point();
                    p.X = _point.X +3;
                    p.Y = _point.Y +4.5;
                    return p;
                }
            }
        }

      
    }



    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;

    namespace slChinaMapWeb
    {
        public static class  CityData
        {
            public  static City[] Cities = new City[]
            {
                new City("青海", new Point(210, 250)),
               
                new City("甘肃",  new Point(290, 260)),
                new City("重庆",  new Point(335, 325)),
                new City("四川",  new Point(280, 315)),
                new City("陕西",  new Point(340, 270)),
                new City("云南",  new Point(265, 395)),
                new City("北京",  new Point(410, 185)),
                new City("湖南",  new Point(380, 350)),
                new City("贵州",  new Point(320, 365)),
                new City("广西",  new Point(350, 405)),
                new City("湖北",  new Point(380, 310)),
            };
        }
    }

  • 相关阅读:
    python自动化测试学习笔记-8单元测试unittest模块
    python自动化测试学习笔记-8多线程
    python自动化测试学习笔记-7面向对象编程,类,继承,实例变量,邮件
    python自动化测试学习笔记-6excel操作xlwt、xlrd、xlutils模块
    android 拍照上传文件 原生定位
    golang 固定worker 工作池
    小程序报错x509: certificate signed by unknown authority
    PostgreSQL 添加postgis插件实现获取经纬度间的距离
    微信小程序使用mqtt mpvue mosquito
    golang 调用顺丰API接口测试
  • 原文地址:https://www.cnblogs.com/cuit/p/1210016.html
Copyright © 2011-2022 走看看