Get Radius Of Visible Map in Android

后端 未结 5 399
温柔的废话
温柔的废话 2020-12-03 11:11

Is there any possible way of finding radius of the visible map from the middle point?

\"Google

I

5条回答
  •  悲哀的现实
    2020-12-03 11:30

    edit: The following answer is for Google Maps JavaScript API v3
    =-=-=-=-=-=-=

    I think the answer would be: Yes, you can.

    According to the documentation, you can calculate distance between 2 points by: computeDistanceBetween(LatLngFrom, LatLngTo)

    Also you can get the boundary of the map by using getBounds() method, which is in the google.maps.Map class.

提交回复
热议问题