Advertisement
tihomirtodorov

Untitled

Feb 21st, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 6249 containsLatLng google maps APi and compare your currentlat lng points in any of the global array
  2.  
  3. use another
  4.  
  5.  
  6. 7593 get the points of the specific hole ---
  7. fieldboundary = new google.maps.MVCArray();
  8. for (var i = 0; i < polygonsArray.length; i++) {
  9. if (polygonsArray[i].get("id") == temp_fieldId) {
  10. for (var p = 0; p < polygonsArray[i].getPath().getLength() ; p++) {
  11. fieldboundary.push(new google.maps.LatLng(polygonsArray[i].getPath().getAt(p).lat(), polygonsArray[i].getPath().getAt(p).lng()));
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement