简体   繁体   English

Android Google Maps API

[英]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​​之前,我有一些问题。

  1. Can I overlay an image on the map, without that the user knowing I use Google maps API? 我可以在用户不知道我使用Google maps API的情况下在地图上叠加图像吗?
  2. Can I cut and use only specific area of the map and limit user to that map, lets say show only some amusement park and show the user location, and user cant go outside my map? 我可以只剪切和使用地图的特定区域并限制用户使用该地图,可以说仅显示一些游乐园并显示用户位置,而用户却不能走出我的地图吗?

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.

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