plank/php-google-map-api — Issue #1: Can't add cords through array..
Author: ajmalmsali
Created: 2011-11-06 08:40:49+00:00
State: open

How to add the cords through array??
$polyline_array = array(array(76.613544,9.315863),array(78.119775,9.925201),array(77.059525,10.088933));
$MAP_OBJECT->addPolyLineByCoords($polyline_array, $id=false,$color='#FFFFFF',$weight=6, $opacity=.6);
OR
$polyline_array = array(76.613544,9.315863,78.119775,9.925201,77.059525,10.088933);
$MAP_OBJECT->addPolyLineByCoords($polyline_array, $id=false,$color='#FFFFFF',$weight=6, $opacity=.6);

Anywys both didn't work.. ( the map is not displayed)

At the same time the below code works..
$MAP_OBJECT->addPolyLineByCoords(76.613544,9.315863, 78.119775,9.925201, false, "#FFFFFF",6,.6);
$MAP_OBJECT->addPolyLineByCoords(78.119775,9.925201,77.059525,10.088933, false,"#FFFFFF",6,.6);
$MAP_OBJECT->addPolyLineByCoords(77.059525,10.088933,77.489182,10.238114, false,"#FFFFFF",6,.6);

Waiting for your help..