Guest User

Untitled

a guest
Oct 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var spherical = google.maps.geometry.spherical,
  2. bounds = map.getBounds(),
  3. cor1 = bounds.getNorthEast(),
  4. cor2 = bounds.getSouthWest(),
  5. cor3 = new google.maps.LatLng(cor2.lat(), cor1.lng()),
  6. cor4 = new google.maps.LatLng(cor1.lat(), cor2.lng()),
  7. width = spherical.computeDistanceBetween(cor1,cor3),
  8. height = spherical.computeDistanceBetween( cor1, cor4);
Add Comment
Please, Sign In to add comment