Posted By

alegarza on 08/24/10


Tagged


Versions (?)

Polygon GMaps Javascript V2


 / Published in: JavaScript
 

URL: http://code.google.com/

  1. var points =
  2. [
  3. new GLatLng(41.934977,-114.038086),
  4. new GLatLng(41.934977,-120.014648),
  5. new GLatLng(38.925229,-119.970703),
  6. new GLatLng(34.957995,-114.56543),
  7. new GLatLng(35.782171,-114.609375),
  8. new GLatLng(36.102376,-114.697266),
  9. new GLatLng(36.102376,-114.301758),
  10. new GLatLng(36.102376,-114.213867),
  11. new GLatLng(36.315125,-114.082031),
  12. new GLatLng(37.892196,-113.994141)
  13. ];
  14. var polygon = new GPolygon(points,'#FF0000',0.1,0.4,'#FF0000',0.4);
  15. map.addOverlay(polygon);

Report this snippet  

You need to login to post a comment.