Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this is to get coordinate(lat and lng) of a map, lats and lng are being stored in array named coordinate
- var coordinate = [];
- for (var i = 0; i < polygon.getPath().getLength(); i++) {
- coordinate += polygon.getPath().getAt(i).toUrlValue(6) + ",";
- }
- var results =coordinate.filter(function(value) {
- return(value< 0);
- }
- );
- alert(coordinate);
- })
Add Comment
Please, Sign In to add comment