简体   繁体   English

如何制作自己的地图以便在Android上应用?

[英]How to make your own map for application on Android?

I'm developing a map application for a University on Android. 我正在为Android上的大学开发地图应用程序。 I am using Google Maps API. 我正在使用Google Maps API。 The problem is that I found Google Maps does not show the buildings. 问题是我发现Google地图未显示建筑物。 And routing services. 及路由服务。 I need to show these over the University's total area. 我需要在大学总面积上显示这些内容。 How to create geo, the building and routing services in the university? 如何在大学中创建地理,建筑和路线服务?

Map Picture 地图图片

I mean about polygon and polyline. 我的意思是关于多边形和折线。

Thank you for your answer. 谢谢您的回答。

The Google Maps API does contain a way to show buildings and such - mapView.setSatellite(true) . Google Maps API 确实包含一种显示建筑物的方法mapView.setSatellite(true) However, I don't know of a way to connect to routing service. 但是,我不知道连接路由服务的方法。 It's been discussed many times here on SO, and it seems that routing is against Google's Terms of Service, or Google removed it. 关于SO的讨论已经很多次了,路由似乎违反了Google的服务条款,或者Google删除了它。 It is possible to do queries onto web databases, as can be seen here . 这是可以做到的查询到网络数据库,可以看出这里 As far as drawing polygons on the map (I think that's what you want to do), you can create you own class extending Overlay and override onDraw() to draw your shapes on the Canvas . 至于在地图上绘制多边形(我这就是您想要做的),您可以创建自己的扩展Overlay的类并重写onDraw()以在Canvas上绘制形状。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM