Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. function testarr()
  2. {
  3. polygon1 = [new google.maps.LatLng(54.66092513983568, 39.71935272216797),
  4. new google.maps.LatLng(54.63847909506459, 39.718666076660156),
  5. new google.maps.LatLng(54.63748562083948, 39.77668762207031),
  6. new google.maps.LatLng(54.66430090574764, 39.77668762207031)];
  7.  
  8. polygon2 = [new google.maps.LatLng(54.605482774276126, 39.713172912597656),
  9. new google.maps.LatLng(54.58817883247707, 39.714202880859375),
  10. new google.maps.LatLng(54.58917351104145, 39.734458923339844),
  11. new google.maps.LatLng(54.607073572207575, 39.7320556640625)];
  12.  
  13. polygonpolygon.push(polygon1);
  14. polygonpolygon.push(polygon2);
  15. }
  16.  
  17. var polyg = new google.maps.Polygon({
  18. fillColor: 'blue',
  19. path: polyarr111,
  20. strokeWeight: 3
  21. });
  22.  
  23. for (var u=0; u<2; u++) {
  24. polyg.setPaths(new google.maps.MVCArray(polygonpolygon[u]));
  25. };
  26.  
  27. var polygonOptions = {
  28. fillColor: 'blue',
  29. strokeWeight: 3
  30. };
  31.  
  32. for (var u=0; u<polygonpolygon.length; u++) {
  33. var polygon = new google.maps.Polygon(polygonOptions);
  34. polygon.setPaths(polygonpolygon[u]);
  35. polygon.setMap(map);
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement