Adding in Maps to Silverlight Project

a 夏天 提交于 2019-12-12 02:08:51

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/15104858/adding-in-maps-to-silverlight-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!