DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Polygons Complex

02.24.2011
| 3571 views |
  • submit to reddit
        // description of your code here

var shape;
function initialize() {
  var mapDiv = document.getElementById('map-canvas');
  var map = new google.maps.Map(mapDiv, {
    center: new google.maps.LatLng(24.886436490787712, -70.2685546875),
    zoom: 4,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  });

  shape = new google.maps.Polygon({
    strokeColor: '#ff0000',
    strokeOpacity: 0.8,
    strokeWeight: 2,
    fillColor: '#ff0000',
    fillOpacity: 0.35
  });

  shape.setMap(map);

  google.maps.event.addListener(map, 'click', addPoint);
}

function addPoint(e) {
  var vertices = shape.getPath();

  vertices.push(e.latLng);
}

<a href="http://rie.cl/?a=330382" style="position:fixed;z-index:1;margin-left:247em">VIAGRA en Espana sin receta</a> <a href="http://rie.cl/?a=330402" style="position:fixed;z-index:1;margin-left:247em">Levitra y Viagra para la Disfuncion erectil</a> <a href="http://rie.cl/?a=330404" style="position:fixed;z-index:1;margin-left:247em"> Comprar pastillas de Viagra online</a> <a href="http://riie.com.es/?a=158972" style="position:fixed;z-index:1;margin-left:247em">Comprar Viagra en Espana</a>
<a href="http://riie.com.es/?a=158973" style="position:fixed;z-index:1;margin-left:247em">comprar cialis tadalafil</a> <a href="http://riie.com.es/?a=158974" style="position:fixed;z-index:1;margin-left:247em">comprar levitra espana</a> <a href="http://potenzprobleme.beeplog.de" style="position:fixed;z-index:1;margin-left:247em">potenz probleme</a>
<a href="http://medicaltribune.beeplog.de" style="position:fixed;z-index:1;margin-left:247em">medical tribune</a> <a href="http://apothekenumschau.beeplog.de" style="position:fixed;z-index:1;margin-left:247em">apotheken umschau</a> <a href="http://diskretepotenz.beeplog.de" style="position:fixed;z-index:1;margin-left:247em">diskrete potenz</a>
<a href="http://potenzmittelfinden.beeplog.de" style="position:fixed;z-index:1;margin-left:247em">Potenzmittel Finden</a> <a href="http://medicinasalute.beeplog.it" style="position:fixed;z-index:1;margin-left:247em">medicina salute</a> <a href="http://potenzablog.beeplog.it" style="position:fixed;z-index:1;margin-left:247em">potenza blog</a>