如何在我的紧凑框架应用程序中使用OpenStreetMap ?

时间:2022-07-30 20:30:23

Does anyone know, how I can use OpenStreetMap inside my Compact Framework application? Is there a Framework or something like that? All I can find in their wiki is how to contribute to their project and to user their software to map data. But I want to use their maps to show the users location inside my own app. I could not find anything about using their web service or whatever I have to use to show their maps inside my application.

有人知道,我如何在紧凑的框架应用程序中使用OpenStreetMap吗?有这样的框架吗?我能在他们的维基中找到的只是如何为他们的项目和用户的软件映射数据。但我想用他们的地图来显示我的应用程序中的用户位置。我找不到任何关于使用他们的web服务或我必须在我的应用程序中显示他们的地图的信息。

5 个解决方案

#1


4  

There is a project on Google Code that wants to create a .NET library for the OpenStreetMap API. The website states that there currently is an alpha release, so it might be worth checking that out: code.google.com/p/openstreetmapnet

有一个关于谷歌代码的项目想要为OpenStreetMap API创建一个。net库。该网站称目前有一个alpha版本,所以值得一看:code.google.com/p/openstreetmapnet

And there are two similar projects on CodePlex as well: osmscout.codeplex.com gmap4dotnet.codeplex.com

在CodePlex上还有两个类似的项目:osmscout.codeplex.com gmap4dotnet.codeplex.com

Maybe those can be used in the Compact Framework as well, or you could ask the project teams to add that feature (or get involved yourself, it is opensource after all).

也许它们也可以在Compact框架中使用,或者您可以要求项目团队添加这个特性(或者您自己加入进来,它毕竟是opensource)。

#2


1  

CloudMade provides APIs for embedding OpenStreetMap maps in many languages - but not .NET as of the time of writing. There are plain HTTP APIs for map tiles available that you could call from .NET programs, but this is of course fairly low-level.

CloudMade为将OpenStreetMap嵌入到多种语言中提供了api,但是在编写时,还没有。net。可以从。net程序调用映射块的普通HTTP api,但是这是相当低的。

The CloudMade APIs are designed for developers who want to embed OSM output in their projects, rather than the OSM API which is geared towards map creation, so I think you might be interested in the CloudMade stuff.

CloudMade API是为希望在项目中嵌入OSM输出的开发人员而设计的,而不是面向映射创建的OSM API,因此我认为您可能对CloudMade的内容感兴趣。

See http://developers.cloudmade.com/projects for more.

见http://developers.cloudmade.com/projects。

#3


0  

They don't appear to have any CF libraries, but the API specification is well documented, so there's no reason you couldn't integrate with it.

它们似乎没有任何CF库,但是API规范有很好的文档记录,所以没有理由不能与它集成。

#4


0  

I've developed a CF component that can download OpenStreetMap tiles, and also plot points of interest and basic routes. Depending on your requirements, and any restrictions on licences that you're permitted to use, then it may be of use to you?

我开发了一个CF组件,可以下载OpenStreetMap tiles,还可以绘制感兴趣的点和基本路线。根据您的需求,以及您允许使用的许可证的任何限制,您可能会使用它吗?

#5


0  

Brutile looks quite promising. It is a library designed for C# to connect to OpenStreetMap sources. (Silverlight demo available Here.

Brutile看起来很有前途。它是一个为c#设计的用于连接到OpenStreetMap源的库。(Silverlight演示。

The wiki also has a listing of all .NET related pages. Of the documented projects, OpenStreetMapViewer looks like it fits your needs the best. It's designed to display a portion of OpenStreetMap within a .NET app. I'm sure at least one of these will work for windows mobile.

wiki还提供了所有。net相关页面的列表。在已文档化的项目中,OpenStreetMapViewer看起来最适合您的需求。它被设计成在。net应用程序中显示OpenStreetMap的一部分。

#1


4  

There is a project on Google Code that wants to create a .NET library for the OpenStreetMap API. The website states that there currently is an alpha release, so it might be worth checking that out: code.google.com/p/openstreetmapnet

有一个关于谷歌代码的项目想要为OpenStreetMap API创建一个。net库。该网站称目前有一个alpha版本,所以值得一看:code.google.com/p/openstreetmapnet

And there are two similar projects on CodePlex as well: osmscout.codeplex.com gmap4dotnet.codeplex.com

在CodePlex上还有两个类似的项目:osmscout.codeplex.com gmap4dotnet.codeplex.com

Maybe those can be used in the Compact Framework as well, or you could ask the project teams to add that feature (or get involved yourself, it is opensource after all).

也许它们也可以在Compact框架中使用,或者您可以要求项目团队添加这个特性(或者您自己加入进来,它毕竟是opensource)。

#2


1  

CloudMade provides APIs for embedding OpenStreetMap maps in many languages - but not .NET as of the time of writing. There are plain HTTP APIs for map tiles available that you could call from .NET programs, but this is of course fairly low-level.

CloudMade为将OpenStreetMap嵌入到多种语言中提供了api,但是在编写时,还没有。net。可以从。net程序调用映射块的普通HTTP api,但是这是相当低的。

The CloudMade APIs are designed for developers who want to embed OSM output in their projects, rather than the OSM API which is geared towards map creation, so I think you might be interested in the CloudMade stuff.

CloudMade API是为希望在项目中嵌入OSM输出的开发人员而设计的,而不是面向映射创建的OSM API,因此我认为您可能对CloudMade的内容感兴趣。

See http://developers.cloudmade.com/projects for more.

见http://developers.cloudmade.com/projects。

#3


0  

They don't appear to have any CF libraries, but the API specification is well documented, so there's no reason you couldn't integrate with it.

它们似乎没有任何CF库,但是API规范有很好的文档记录,所以没有理由不能与它集成。

#4


0  

I've developed a CF component that can download OpenStreetMap tiles, and also plot points of interest and basic routes. Depending on your requirements, and any restrictions on licences that you're permitted to use, then it may be of use to you?

我开发了一个CF组件,可以下载OpenStreetMap tiles,还可以绘制感兴趣的点和基本路线。根据您的需求,以及您允许使用的许可证的任何限制,您可能会使用它吗?

#5


0  

Brutile looks quite promising. It is a library designed for C# to connect to OpenStreetMap sources. (Silverlight demo available Here.

Brutile看起来很有前途。它是一个为c#设计的用于连接到OpenStreetMap源的库。(Silverlight演示。

The wiki also has a listing of all .NET related pages. Of the documented projects, OpenStreetMapViewer looks like it fits your needs the best. It's designed to display a portion of OpenStreetMap within a .NET app. I'm sure at least one of these will work for windows mobile.

wiki还提供了所有。net相关页面的列表。在已文档化的项目中,OpenStreetMapViewer看起来最适合您的需求。它被设计成在。net应用程序中显示OpenStreetMap的一部分。