Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6249 containsLatLng google maps APi and compare your currentlat lng points in any of the global array
- use another
- 7593 get the points of the specific hole ---
- fieldboundary = new google.maps.MVCArray();
- for (var i = 0; i < polygonsArray.length; i++) {
- if (polygonsArray[i].get("id") == temp_fieldId) {
- for (var p = 0; p < polygonsArray[i].getPath().getLength() ; p++) {
- fieldboundary.push(new google.maps.LatLng(polygonsArray[i].getPath().getAt(p).lat(), polygonsArray[i].getPath().getAt(p).lng()));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement