Coords Error When Adding Marker
Hi, I am getting this error when i try to place a marker.
Any ideas what could cauze this ?
Error: The "coords" attribute of the <area shape="poly"> tag is not in
the "x1,y1,x2,y2 ..." format.
Source File: http://projects.khaoslabs.com/mapme/map.php
Line: 0
Source Code:
coords=""
I am never setting a coords="" so i am assuming this is in the API js ?
My Code
////////////////////////////////////////
var i = 0;
var count = frames['plot'].document.getElementById('count').innerHTML;
while (i < parseFloat(count)) {
var result = frames['plot'].document.getElementById('result' +
i).innerHTML;
var collection=result.split(",");
if (collection[1] == "0" && collection[2] == "0") {
notfound += "<b>" + collection[0] + "</b><br />";
} else {
//
var point = new GPoint(collection[1], collection[2]);
var marker = createMarker(point, collection[0], iconGreen);
//
}
map.addOverlay(marker);
i++;
}
Thanks,
PointBlank13
0 Comments:
Yorum Gönder
<< Home