コード例 #1
0
ファイル: MapViewGoogle.cs プロジェクト: EdgarEDT/myitoppsp
        public MapViewGoogle(string mapfile)
        {
            dataHelper = new GoogleDataHelper("", "m1_");
            dataHelper2 = new GoogleDataHelper2("", "m2_");
            dataHelper3 = new GoogleDataHelper3("", "m3_");
            dataHelper4 = new GoogleDataHelper4("", "m4_");
            dataHelper.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper2.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper3.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper4.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            mapHelper = new MapLib.GoogleMapHelper();
            baseNames = new Dictionary<TileType, string>();
            baseNames.Add(TileType.Map, "m1_");
            baseNames.Add(TileType.Terrain, "m4_");
            baseNames.Add(TileType.Photos, "m2_");
            baseNames.Add(TileType.PhotosLabel, "m3_");
            dataHelpers.Add(TileType.Map, dataHelper);
            dataHelpers.Add(TileType.Photos, dataHelper2);
            dataHelpers.Add(TileType.PhotosLabel, dataHelper3);
            dataHelpers.Add(TileType.Terrain, dataHelper4);
            try
            {
                //lgm 2012��9��20�ո�
                //double d1 = double.Parse(ConfigurationManager.AppSettings["offsizejd"]);
                //double d2 = double.Parse(ConfigurationManager.AppSettings["offsizewd"]);

                double d1 = MIS.PYJD;
                double d2 = MIS.PYWD;
                Offsize = new LongLat(d1, d2);
            }
            catch { }
        }
コード例 #2
0
ファイル: MapViewGoogle.cs プロジェクト: github188/myitoppsp
        public MapViewGoogle(string mapfile)
        {
            dataHelper  = new GoogleDataHelper("", "m1_");
            dataHelper2 = new GoogleDataHelper2("", "m2_");
            dataHelper3 = new GoogleDataHelper3("", "m3_");
            dataHelper4 = new GoogleDataHelper4("", "m4_");
            dataHelper.OnDownCompleted  += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper2.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper3.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            dataHelper4.OnDownCompleted += new DownCompleteEventHandler(dataHelper_OnDownCompleted);
            mapHelper = new MapLib.GoogleMapHelper();
            baseNames = new Dictionary <TileType, string>();
            baseNames.Add(TileType.Map, "m1_");
            baseNames.Add(TileType.Terrain, "m4_");
            baseNames.Add(TileType.Photos, "m2_");
            baseNames.Add(TileType.PhotosLabel, "m3_");
            dataHelpers.Add(TileType.Map, dataHelper);
            dataHelpers.Add(TileType.Photos, dataHelper2);
            dataHelpers.Add(TileType.PhotosLabel, dataHelper3);
            dataHelpers.Add(TileType.Terrain, dataHelper4);
            try
            {
                //lgm 2012年9月20日改
                //double d1 = double.Parse(ConfigurationManager.AppSettings["offsizejd"]);
                //double d2 = double.Parse(ConfigurationManager.AppSettings["offsizewd"]);

                double d1 = MIS.PYJD;
                double d2 = MIS.PYWD;
                Offsize = new LongLat(d1, d2);
            }
            catch { }
        }