hi ross, this code works like magic......how many marker can handle by this code without make it slow?
and i have some more data like tube stations postcode, schools postcode and hospitals postcode, in starting they will be hidden but i will display check box over google map when they select that check box then they will be visible(marker with diffrent icon). i will try to impliment this if i get any problem i will write here again.... is it possible to get your personal email address or contact something or your group id so i can add you? On Jun 21, 2:12 am, Rossko <[email protected]> wrote: > > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
