> hi ross, i think first i fix marker problem....
> hi ross, i think first i fix marker problem....
I think we can rationalise this chunk of code like so -
if (batch[id] !== undefined ) {
batch[id].keep_it = true;
} else {
var marker = createMarker(....);
batch[id] = marker;
batch[id].keep_it = true;
map.addOverlay(marker);
}
} // end of markers loop
for (id in batch){
if (batch[id].keep_it === true) {
batch[id].keep_it = false;
} else if (batch[id].keep_it === false) { // this should
avoid picking up e.g. jscript extensions
map.removeOverlay(batch[id]);
delete batch[id];
}
} // end scan current batch
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---