How to get Bitmap of MapView from Android Google Maps API V2

后端 未结 1 1523
北海茫月
北海茫月 2021-01-04 17:54

I\'m updating my app to the new Android Maps API V2 and ran into a problem when trying to get a bitmap image of the currently shown map. In API V1 I did this like so:

<
相关标签:
1条回答
  • 2021-01-04 18:09

    GoogleMap.snapshot() method does the job.

    0 讨论(0)
提交回复
热议问题