如何从 CloudMade 下载 OpenStreetMap 图块?
如何下载cloudmade地图图块?我必须下载具有不同缩放级别的图块?如何将这些图块保存到数据库以供以后加载?有可用的示例代码吗?任何帮助表示赞赏..
how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以选择不同的选项。
首先,您可以使用 Javascript“Web Maps API”。如果您想在网站上显示地图,这非常有用。它将下载所需的图块并适当地显示它们,并为您提供平移和缩放地图的界面。请参阅他们的页面 http://developers.cloudmade.com/projects/show/ web-maps-api
第二个选项是如果您想直接访问地图图块。他们称之为 HTTP Maps API。您将需要为您自己的应用程序计算要下载哪些图块、如何排列它们等。看看 http://developers.cloudmade.com/projects/show/tiles
最后,虽然你在问题中没有提到它,但我看到这个问题被标记为“iphone”和其他相关的东西。也许您想看看他们的 iPhone SDK,它类似于 Web Maps API。请参阅 http://www.developers.cloudmade.com/wiki/iphone-sdk /Examples 有关如何使用它的示例。
There are different options available to you.
First, you can use the Javascript "Web Maps API". This is useful if you are wanting to show the maps on a website. It will download the required tiles and display them appropriately, and give you the interface to pan and zoom the map. See their pages at http://developers.cloudmade.com/projects/show/web-maps-api
Second option is if you want to access the map tiles directly. They call it their HTTP Maps API. You will need to make the calcuations of which tiles to download, how to arrange them etc for your own application. Have a look at http://developers.cloudmade.com/projects/show/tiles
Finally, although you don't mention it in your question, I see the question is tagged with "iphone" and other related things. Perhaps you want to look at their iPhone SDK, which is similar to the Web Maps API. See http://www.developers.cloudmade.com/wiki/iphone-sdk/Examples for examples on how to use it.