function rysowanieBoxa() {
if (boxes != null) {
for (var i = 0; i < boxes.length; i++) {
var vertices = [
boxes[i].getSouthWest(),
new GLatLng(boxes[i].getSouthWest().lat(),
boxes[i].getNorthEast().lng()),
boxes[i].getNorthEast(),
new GLatLng(boxes[i].getNorthEast().lat(),
boxes[i].getSouthWest().lng()),
boxes[i].getSouthWest()
];
var polygon = new GPolyline(vertices, '#ff0000', 1, 1.0);
map.addOverlay(polygon);
}
}
}
28 cze 2010