Hi Peeps...
I'm a little stuck on this one, I'm sure it can be done, but just can not get my head around it all.
Here is the problem...
I have Lat & Lng stored in a database like this... which should draw a polygon on a map.
PHP
$polyPoints="50.37349614430351, -2.0654296875000106,51.56341232867588, 2.4609375,53.514184520771124, -3.427734375000007,50.37349614430351, -2.0654296875000106";
OR
$polyPoints=$row[polyPoints];
I need to get $polyPoints in to a JavaScript Array so I can use it like this...
JavaScript
var polygon = new VEShape(VEShapeType.Polygon, polyPoints);
polygon.HideIcon();
map.AddShape(polygon);
Can anyone show me the light here please!
:o