随笔 - 292  文章 - 38  评论 - 3616  阅读 - 190万

DeepEarth更新到Silverlight 4了

  很久没有关注DeepEarth的更新进展了,昨晚上CodePlex看发现DeepEarth已经更新到Silverlight 4版本了,并且做了许多的改变,主要包括如下:

  Added SL4 branch folders.
  Added upgraded SL4 GeoAPI, NetTopologySuite.
  Added SL4 Silverlight toolkit library dlls (April 2010).

  Upgraded DeepEarth MapControl to Silverlight 4
  Upgraded all DeepEarth TileProviders to Silverlight 4
  Upgrade DeepEarth MapControl to use Silverlight 4 inbuilt MouseWheel Events
  Create new LocationBase class to replace the PointBase class, and uses Latitude & Longitude
  Enable Hardware Acceleration for the MapControl
  Upgraded the core controls (navigation, coordinates etc) to Silverlight 4 & integrate with map project.
  Fixed Styles for controls and C# code to allow Styles/Templates to display correctly at design time in both VS2010 & Blend 4 RC
  Remove the dependicy/referance to NetopologySuite Project and include the relevant parts in our code, upgraded to SL4 code.
  Provide an example of a separate control that is a separate project interacting with the map = eg, layer control.
  Tested everything works in Out of Browser Mode (OOB)

 

  DeepEarth从Silverlight 3升级到了Silverlight 4,在几何框架中并通过新创建的LocationBase类替换了原来在Silverlight版本中的PointBase基类,并使用了经度(Longitude)和纬度(Latitude)替换了旧版本PointBase中使用的X,Y。

复制代码
        /// <summary>
        
/// The Latitude coordinate of the point
        
/// </summary>

        public double Longitude
        {
            
get { return
 Point.X; }
            
set

            {
                _Point.X 
= value;
                Point 
=
 _Point;
            }
        }

        
/// <summary>

        
/// The Longitude coordinate of the point
        
/// </summary>

        public double Latitude
        {
            
get { return
 Point.Y; }
            
set
 
            {
                _Point.Y 
=
 value;
                Point 
=
 _Point;
            }
        }
复制代码

 

 

  同时还为MapControl启用了硬件加速的支持,另外还优化了DeepEarth的内置控件,升级到Silverlighg 4后我们可以在VS2010或是Blend4中设计更佳美观、炫丽的UI效果。

 

推荐资源:

  DeepEarth开发文章汇总

     【Silverlight】Bing Maps系列文章

     http://deepearth.codeplex.com/

 

posted on   Bēniaǒ  阅读(3109)  评论(2编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述
历史上的今天:
2008-05-13 解读设计模式----单例模式(Singleton Pattern)

点击右上角即可分享
微信分享提示