OpenStreetMap的ASP.NET中 [英] OpenStreetMap in ASP.NET

查看:196
本文介绍了OpenStreetMap的ASP.NET中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很感兴趣,在Web应用程序中使用OpenStreetMap的使用ASP.NET开发。
任何人都知道,如果有一个控制,图书馆或包装在ASP.NET中使用OpenStreetMap的? (C#,不使用Javascript)。

I'm interested in using OpenStreetMap in a web application developed using ASP.NET. Anyone knows if there is a control, library or wrapper for using OpenStreetMap in ASP.NET? (C#, not using Javascript).

先谢谢了。

推荐答案

BruTile 是一个C#库,用于显示一个移动的地图。它可以在网络上使用,通过Silverlight的显示。

BruTile is a C# library for displaying a slippy map. It can be used on the web, displaying via silverlight.

在我看来Silverlight的要求是不是一个公共网站一个明智的选择,而不是供内部使用无论是从长期的角度来看很懂事,所以这不是一个很好的解决方案。但是,这是我所知道其中唯一符合你要求的东西。

In my opinion a silverlight requirement is not a sensible choice for a public website, and not very sensible for internal use either from a long term perspective, so this isn't a great solution. But this is the only thing I'm aware of which matches what you're asking for.

不使用Javascript是一个奇怪的限制,因为大多数的嵌入式网络地图使用JavaScript。也许你的意思的的不想与任何JavaScript来的工作,但该网站可以使用它。在这种情况下......我还是不知道任何C#解决方案,但它包装的OpenLayers或一个库,从你隐藏所有JavaScript开发其他替代品,将是非常可行的。有人应该建立这样的事!在此期间,JavaScript来显示一个移动的地图很简单我承诺: - )

"not using Javascript" is a curious restriction, since most embedded web maps use javascript. Perhaps you mean you don't want to work with any javascript, but the website can use it. In which case... I'm still not aware of any C# solution, but a library which wraps OpenLayers or one of the other alternatives, hiding all javascript development from you, would be very feasible. Someone should build such a thing! In the meantime, the javascript to display a slippy map is quite simple I promise :-)

另一种方法可能是静态地图图像生成库,取砖的图像,他们拆线成一张照片,并在本地缓存它让你在&lt显示; img>标签。同样这样的事情是非常可行的(容易!?)建立与C#。有人应该这样做!在此期间,你可以链接到其中的一个服务(如的标签;相对=直接从&LT nofollow的>从MapQuest的新一)。 ...没有JavaScript和没有C#或者!

The other approach might be a Static Map Image generating library which fetches tile images, stitches them into a single image and caches it locally for you to display in an <img> tag. Again such a thing would be very feasible (easy!?) to build with C#. Someone should do it! In the meantime you can link to one of those services (e.g the new one from MapQuest) directly from an <img> tag on your site. ...No javascript, and no C# either!

这篇关于OpenStreetMap的ASP.NET中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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