[英]Android Google maps API
I`m creating app with GPS map. 我正在使用GPS地图创建应用。 Before I start understanding how to use the API in my app I have some questions.
在开始了解如何在我的应用程序中使用API之前,我有一些问题。
I need to show on an image the location of user, without navigation, should I use Google maps API or different approach? 我需要在图像上显示用户的位置,而无需导航,我应该使用Google Maps API还是其他方法?
From the looks of it you want the Google Static Maps API. 从外观上,您需要Google Static Maps API。
https://developers.google.com/maps/documentation/staticmaps/ https://developers.google.com/maps/documentation/staticmaps/
This will generate an image of a map when you give it the latitude, longitude etc. You can then use this in an ImageView. 当您为其指定纬度,经度等时,将生成地图图像。然后可以在ImageView中使用它。
The advantage is that you don't have to create an expensive MapView, but it will not be interactive 优点是您不必创建昂贵的MapView,但不会交互
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.