24 Lip 2008

Wyświetlenie punktów z dymkami

var dane = new Array();
dane[0] = { lat: 52.224355732689, lng: 21.253480911255, dymek: '<span class="dymek"><b>opis</b></span>' }

var cnt = dane.length;
for (i = 0; i < cnt; i++) {
  var d = dane[i];
  var marker = new GMarker(new GPoint(d.lng, d.lat));
  map.addOverlay(marker);
  marker.openInfoWindowHtml(d.dymek);
}