简体   繁体   中英

How to make your own map for application on Android?

I'm developing a map application for a University on Android. I am using Google Maps API. The problem is that I found Google Maps does not show the buildings. 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) . 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. 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 . Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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