Overlay an image on google maps android api v2

99封情书 提交于 2019-12-06 11:53:40

BitmapDescriptorFactory can create BitmapDescriptors for you from various objects, e.g.

BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.myimage);

You don't need to use positionFromBounds if you don't want to. There are alternative ways to create from central LatLng and width in meters: GroundOverlayOptions.position.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!