For me poly.getVertexCount() is not a problem.

The only problem is: if try to add poly0.deleteVertex(2) with firebug
on follow code I don't see a triangle but I see again a polygon with 4
vertexes.

This is the code (in code of my fiest post there is a stupid bug):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="content-type" content="text/html"/>
<title>Google Maps</title>
<script src="http://maps.google.com/maps?file=api&amp;v=2"; type="text/
javascript"></script>
<script type="text/javascript">
var scaleControl = new GScaleControl();
var largeMapControl = new GLargeMapControl();
var mapTypeControl = new GMapTypeControl();
var poly0
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(scaleControl);
map.addControl(largeMapControl);
map.addControl(mapTypeControl);
map.setCenter(new GLatLng(41.890298,12.492185),4,G_NORMAL_MAP);
var poly0points = [];
poly0points.push(new GLatLng(44.2,-78.8));
poly0points.push(new GLatLng(44,-78.8));
poly0points.push(new GLatLng(44.1,-78.5));
poly0points.push(new GLatLng(43.9,-78.6));
poly0 = new GPolygon(poly0points, "#000080", 3, 1, "#FF8040", 0.5);
map.addOverlay(poly0);
}
}
//]]>
</script>
</head>
<body onload="load()">
<div id="map" style="width: 450px; height: 450px"></div>
</body>
</html>

thanks at all
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to