hi larry, if i remove marker manager is there any way to remove markers from new data which i am getting from xml file?
On Jun 12, 5:17 pm, "[email protected]" <[email protected]> wrote: > On Jun 12, 8:57 am, manu <[email protected]> wrote: > > > hi guy's, i am new with google map api. i not not putting code here as > > you can see from view source. i am getting data from mysql via > > php...and showing marker on google map > > > but my problem is when i m clicking corner marker one then in order to > > show infowindow its automatically moving and becoz of that my > > updateMarker function is running and then closing infowindow......is > > there any way so i can add marker without close infowindow...? > > The infoWindow is an overlay. map.clearOverlays() is removing it. If > it is open, you need to either not call clearOverlays or find a way to > just remove the markers from the map (not sure it that will work with > the marker manager). > > -- Larry > > > > > > > var xml = GXml.parse(data); > > var markers = xml.documentElement.getElementsByTagName("marker"); > > > for (var i = 0; i < markers.length; i++) { > > map.clearOverlays(); > > var id = markers[i].getAttribute("id"); > > | > > | > > | > > | > > var point = new GLatLng(parseFloat(markers[i].getAttribute > > ("lat")), parseFloat(markers[i].getAttribute("lng"))); > > var marker = createMarker(point, id, postcode, address, town, > > ptype); > > batch.push(marker);} > > > mgr.addMarkers(batch,11); > > mgr.refresh(); > > >http://www.spotonsearch.co.uk/auto/xx/index.html > > > thankyou- 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 -~----------~----~----~----~------~----~------~--~---
