Guest User

Untitled

a guest
Dec 13th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // this is to get coordinate(lat and lng) of a map, lats and lng are being stored in array named coordinate
  2.  
  3. var coordinate = [];
  4.  
  5. for (var i = 0; i < polygon.getPath().getLength(); i++) {
  6. coordinate += polygon.getPath().getAt(i).toUrlValue(6) + ",";
  7. }
  8.  
  9. var results =coordinate.filter(function(value) {
  10. return(value< 0);
  11. }
  12. );
  13.  
  14. alert(coordinate);
  15. })
Add Comment
Please, Sign In to add comment