android - Trouble understanding LatLngBounds using GoogleMaps in AndroidStudio -


i have coordinates of current location , trying find out how ne , sw corners current location on google maps using latlngbounds.

i don't seem understand how implement latlngbounds api google has written here: https://developers.google.com/maps/documentation/business/mobile/android/reference/com/google/android/m4b/maps/model/latlngbounds

if explain me latlngbounds , how use great. please let me know if need add more information clear up.

thank you.

a latlng point; latlngbounds rectangle. @ minimum, construct latlngbounds, need 2 latlngs: 1 southwest corner of rectangle, , 1 northeast corner of rectangle. given 2 points, other 2 points of rectangle trivially computed.

its not clear question why need latlngbounds. should need if plan put imagery onto map, or draw type of rectangle. if want show marker or infobox don't need latlngbounds.

if plan use groundoverlay show image centered upon latlng point, more complicated think. have use geolocation mapping tool lets place image onto map, resize fit how like, tool give ne , sw latlngs need latlngbounds groundoverlay.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -