OpenLayers + Flex 中的 Google 地图可能吗?
最近,我真的对 openstreet 地图感到惊讶,它非常有可能操纵数据,并且免费提供许多珍贵的东西 - 例如地理编码和地图本身。
但我希望仍然有谷歌地图的备份。
是否有可能在 Flex 中同时拥有它们,以及如何实现? (或者至少我可以在哪里寻找类似的“统一”项目)
Recently i really was amazed by openstreet maps, and it's very possibilities to manipulate data, aswell the free of charge about many prescious things - like geocoding and the maps itself.
But i wish to still having a backup behind with google maps.
Is it possible to having both of them in Flex, and how ?
( or at least where i can look for similar project of "unification" )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OpenStreet Maps 似乎有一个 REST API。您可以使用 HTTPService 在 Flex 应用程序中访问该 API;假设正确的 crossdomain.xml 文件已就位。
如果不;您必须在 Flex 应用程序和 REST API 之间使用代理。
It appears that OpenStreet Maps has a REST API. You can access that API in a Flex application using the HTTPService; assuming a proper crossdomain.xml file is in place.
If not; you'll have to use a proxy between your Flex app and the REST API.
MapQuest 有一个 使用 OpenStreetMap 数据的 Open Flash API。他们还提供了可与 Flash Builder 一起使用的 Open Flash Mobile API使用 Flex 4.5+ 中的新工具为 iPhone、Android 和 BlackBerry 平板电脑构建应用程序。
请随意查看 MapQuest 开发者网络 上的文档!
MapQuest has an Open Flash API that uses OpenStreetMap data. They also offer an Open Flash Mobile API that can be used with Flash Builder to build apps for the iPhone, Android, and BlackBerry tablet with the new tools in Flex 4.5+.
Feel free to check out the documentation on the MapQuest Developer Network!