i forget to put link of my demo map http://www.spotonsearch.co.uk/auto/xx/index.html
On Jun 16, 3:45 pm, manu <[email protected]> wrote: > hi, i am new with gogole map api, i am just using one example and > modifying according to i requirement, but dont understand after > moveend i have updatemarker function and that function repeating > markers again, how i can stop that. which is already on map do not > repeat them and remove the marker which goes out of bounds > > var batch = []; > var ii; > var bol = 1; > for(ii=0; ii<batch.length; ii++) > { > if(batch[ii]=== id) > { > bol =0; > }} > > if (bol ==1) > { > batch.push(id); > /* this line giving error undefined, trying to remove marker which > goes out of screen > if ( bounds.containsLatLng(marker[id].getLatLng())) { > map.removeOverlay(marker[id]); > alert("removed"); > } > */ > var marker = createMarker(point, id, postcode, address, town, ptype); > map.addOverlay(marker); > > } > > can some body please tell me aur show me example. > > thankyou --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
