Hi i have made a dirty fix to it.

Now i have to show the markers for all the locations.

Please help me.

      // create a polygon
    <? echo"var pts = ["; ?>
    <?
         while ($rowX = mysql_fetch_object($resultX)){
           $lat = $rowX->lat;
           $lng = $rowX->lng;

     echo "new GLatLng("."$lat,"."$lng".")";
     if ($lat !="")
     {
     echo ",";
     }
           }
           ?><? echo"];"; ?>

     //      var polygon = new GPolygon(pts, null, 5, 0.7, "#81BE40",
0.0, {clickable:true} );

     var polyline = new GPolyline(pts, "#FF3300", 5, 0.7,
{clickable:true , geodesic:true} );

           map.addOverlay(polyline);

--~--~---------~--~----~------------~-------~--~----~
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