there are nested for loop with the same variable i and a missing variable is
used in the code:
for (i = 0; i < doc.markers.length; i++) {
if (doc.markers[i].getPosition().equals(markerOptions.position)) {
found = doc.markers[i].active = true;
break;
}
}
fixed code:
for (j = 0; j < doc.markers.length; j++) {
var position = new google.maps.LatLng(placemark.point.lat, placemark.point.lng);
if (doc.markers[j].getPosition().equals(position)) {
found = doc.markers[j].active = true;
break;
}
}
Original issue reported on code.google.com by Zhelyo.H...@gmail.com on 4 Oct 2010 at 2:47
Original issue reported on code.google.com by
Zhelyo.H...@gmail.com
on 4 Oct 2010 at 2:47