Android Google Maps get Boundary Co-ordinates

后端 未结 1 688
臣服心动
臣服心动 2020-12-02 23:48

I am using Google Maps v2 in my application. When the user pans or zooms on the screen I would like to get the area of the map based on which I want to fetch the POI only in

相关标签:
1条回答
  • 2020-12-03 00:16

    You need to use Projection and VisibleRegion classes in order to get visible LatLng region.
    So your code would look something like:

    LatLngBounds curScreen = googleMap.getProjection()
        .getVisibleRegion().latLngBounds;
    
    0 讨论(0)
提交回复
热议问题