Android 谷歌地图海事图表图层
我正在考虑在 Android 应用程序中显示一张地图,其中显示海图,并且还需要离线工作,因为没有任何类型的可用网络连接。我怀疑我会以一系列位图文件的形式提供海图,其中包含剪裁后的区域的 LAT/LON 参考。
我的问题是 - 我该如何实施?我想我必须以某种方式将它们添加为一层,有人可以告诉我如何做到这一点吗?
此外,由于设备将处于离线状态,即使所有内容都保存在本地,尝试使用 Google 地图是否会出现问题,API 会在连接之前“无法工作”吗?
提前致谢。
I'm looking at displaying a map within my Android app that presents maritime charts, and also needs to work offline as there will be no network connectivity of any type available. I suspect that I will get my maritime charts supplied as a series of bitmap files with LAT/LON references of the area clipped.
My question is this - how do I go about implementing this ? I guess I have to add them as a layer somehow, can someone show me how to do this ?
Also, as the device will be offline, will there be a problem trying to use Google maps even if all the content is held locally, will the API just "not work" until it has connectivity ?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于这刚刚赢得了风滚草,我想我应该更新它。
我非常努力地尝试离线使用 Maps API,并将我的位图作为图层 - 但没有成功。该 API 过于依赖互联网,并且在尝试任何操作时似乎都会超时。
简单的解决方案,我刚刚扩展了 ImageView 类来显示我的位图图表和图像。覆盖。
As this just earned Tumbleweed, I thought I should update it.
I tried really hard to use the Maps API offline, with my bitmap as a layer - it didn't work out. The API is too reliant on the interweb and just seems to timeout when trying just about anything.
Simple solution, I have just extended the ImageView class to display my bitmap chart & overlays.