I'm trying to get a Google map to work with polygons.
var points = [
new google.maps.LatLng(39.0174, -104.6634) ,
new google.maps.LatLng(39.0190, -104.6634) ,
new google.maps.LatLng(39.0190, -104.6700) ,
new google.maps.LatLng(39.0174, -104.6700) ];
works just fine.
----------------------
$q1 = mysqli_query ($con, "select * from points;");
while ($r1 = mysqli_fetch_row ($q1)) {
$results[$n++] = "(" . $r1[0] . ")";
}
var points = <?php echo json_encode($results); ?>;
alert (points); in both cases displays the same (39.0174,-104.6634... numbers. Except the sql doesn't display anything - well the map but not the polygon.
I'd love any help you can give.
Thanks