var polygon = new GPolygon([
new GLatLng(12.656418,100.991821), //1
new GLatLng(12.663117,100.991821),//2
new GLatLng(12.91623,101.083832), //3
new GLatLng(13.087504,101.177216), //4
new GLatLng(13.083491,101.561737), //5
new GLatLng(13.167748,101.645508), //6
new GLatLng(13.143678,101.6922), //7
new GLatLng(12.861343,101.824036), //8
new GLatLng(12.692593,101.778717), //9
new GLatLng(12.594774,101.417542), //9
new GLatLng(12.656418,100.991821) //1
], bankokcolor, 2, 1, bankokcolor, 0.3);
map.addOverlay(polygon);
GEvent.addListener (polygon,"mouseover", function () { alert('infowindow'); } );
var polygon = new GPolygon([
new GLatLng(12.656418,100.991821), //1
new GLatLng(12.663117,100.991821),//2
new GLatLng(12.91623,101.083832), //3
new GLatLng(13.087504,101.177216), //4
new GLatLng(13.083491,101.561737), //5
new GLatLng(13.167748,101.645508), //6
new GLatLng(13.143678,101.6922), //7
new GLatLng(12.861343,101.824036), //8
new GLatLng(12.692593,101.778717), //9
new GLatLng(12.594774,101.417542), //9
new GLatLng(12.656418,100.991821) //1
], bankokcolor, 2, 1, bankokcolor, 0.3);
map.addOverlay(polygon);
var coor;
var m;
GEvent.addListener (polygon,"mouseover", function () {
var lg = polygon.getLatLng();
coor = new GLatLng(lg.lat(),lg.lng());
m = new GMarker(coor, {draggable: false, icon:home});
m.bindInfoWindow('TEST');
map.addOverlay(m);
}
);