Hi
This is the code i use
------------------------------------------------------------------------------------------
// create a polygon
<? echo"var pts = ["; ?>
<?
while ($rowX = mysql_fetch_object($resultX)){
$lat = $rowX->lat;
$lng = $rowX->lng;
echo "new GLatLng("."$lat,"."$lng".")".",";
}
?><? echo"];"; ?>
var polygon = new GPolygon(pts, null, 5, 0.7, "#81BE40", 0.0,
{clickable:true} );
map.addOverlay(polygon);
-------------------------------------------------------------------------------------------
some ideas.
//Mikael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---