使用XAML和SharpMap渲染一幅地图

SharpMap作者的Blog上新贴了一个帖子,是关于使用XAML渲染地图的,正好前两天和Edison聊到这个话题,呵呵。

原文如下:

I was just reading a few articles on XAML - Microsoft new UI language for rendering vector content and user interfaces - when it hit me that this probably can get you much further in web mapping interaction than SVG can. XAML is part of the "Windows Presentation Foundation" a part of .NET Framework 3.0 

My first attempt to generate XALM was done by creating a new renderer for SharpMap, and below you can see my first results in XamlPad. The data here has been created based on a SharpMap map by my quick'n'dirty XamlRenderer for SharpMap. 

 XamlWorldMap1.png 

All it takes with the new renderer is initializing the new renderer with your map, and request a new map:

SharpMap.Xaml.Renderer XamlRenderer = new SharpMap.Xaml.Renderer(map);

string xaml = XamlRenderer.GetMap(); 

If you zip the generated XAML file you even get a 20% reduction over a PNG image. 

Next step is to add interaction like zooming, querying etc… 

Download XAML for the above worldmap (261,36 KB)

 
感觉使用XAML是不是和SVG类似,至少从 技术思路上来看,那么,对于大数据量,海量数据,根据空间索引来控制输出范围怎么解决?目前对于可以达到公众型Web地图效率的,估计只有GMap的方式可以使用,但这种方式的弊端是显而易见的,下一个突破点在什么地方呢?
 
欢迎讨论!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值