In my application I am displaying places using markers on google maps. But I am marking all the available places at once which I don't want to do. I wanted to display the places which only fits into the screen by fetching the maps coordinates as shown below:
I wanted only to fetch the places that are available in this range from the source by sending the coordinates of the maps. I am not sure whether I should capture all the 4-coordinates from the corners of the screen?
Can anyone help me to figure out this?
You can get those by using this method:
This returns you a CameraPosition object. The coordinates of the camera is given by the field target and the zoom level by the field zoom. Now you should be able to calculate the aproximate coordinates of the screen corners.