将地图添加到Silverlight项目 [英] Adding in Maps to Silverlight Project

查看:87
本文介绍了将地图添加到Silverlight项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是否想知道这些天Silverlight项目是否有任何免费的商业地图显示选项?我尝试运行DeepEarth,但它在SL5中无法为我播放.

我热衷于运行OpenStreetMaps,因此我们可以将其商业部署而不会出现许可问题.

任何建议将不胜感激.

谢谢

解决方案

我使用bing映射,

http://msdn.microsoft.com/en-us/library/cc980922.aspx

http://www.microsoft.com/maps/isdk/silverlight/

<UserControl x:Class="MapControlInteractiveSdk.Tutorials.TutorialDefaultMap"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl">
<Grid x:Name="LayoutRoot" Background="White">
    <m:Map CredentialsProvider="{StaticResource MyCredentials}" />
</Grid>
</UserControl>

Bing有两种类型的许可证,如果您将其用作商业用途,则应为此付费.

GeoService非常成功.您只需按逗号分隔地址字段即可返回纬度和态度等.

您还可以更改Google的提供商. Telerik也拥有成功的Api. 据我所知,您可以免费使用Telerik的开放式街道地图提供商.当然,如果您有telerik组件. http://demos.telerik.com/silverlight/#Map/GeoImageryProviders

我认为:

不花钱开发Silverlight应用程序就没有效率.现在,如果没有Telerik,我简直无法胜任.有时支付一个月的钱可以减少我们的费用.

Im wanting to know if there is any commercial free map display options for Silverlight projects these days? I tried to run DeepEarth and it just wouldnt play for me in SL5.

Im keen to run OpenStreetMaps so we can deploy it commercially without licensing issues.

Any advice would be appreciated.

Thanks

解决方案

I use bing maps ,

http://msdn.microsoft.com/en-us/library/cc980922.aspx

http://www.microsoft.com/maps/isdk/silverlight/

<UserControl x:Class="MapControlInteractiveSdk.Tutorials.TutorialDefaultMap"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl">
<Grid x:Name="LayoutRoot" Background="White">
    <m:Map CredentialsProvider="{StaticResource MyCredentials}" />
</Grid>
</UserControl>

Bing has two type licence,if you use it as commercial you should pay for it.

GeoService is very successful. You just separate address fields by comma service returns you latitude and attitude etc.

You can also change your provider for google. Telerik also has successful Api for it. You can use Telerik's Open Street Map provider its free as far as I know. Sure if you got telerik components. http://demos.telerik.com/silverlight/#Map/GeoImageryProviders

In my opinion:

Without paying a mount of money developing silverlight applications is not be efficient. I can't think a silverlight without Telerik now. Sometimes paying a month of money bring us less cost.

这篇关于将地图添加到Silverlight项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆