> If I can get the markers to disappear from the parse of the xml, which > now only contains the points to be used for sidebar entries, I'll be > done with it.
This line in your custom XML parsing routine - map.addOverlay(marker); puts markers on the map. If you remove it, the routine will still process the marker data it reads from the XML file to create a sidebar, but there will be no markers placed on the map. That will leave you with a problem, as the sidebar is set up to trigger an openifowindow on the marker via the myclick() function. If you modify myclick() from gmarkers[i].openInfoWindowHtml(htmls[i]); to map.openInfoWindowHtml( somelocation , htmls[i] ); it doesn't need the marker to hang an infowindow on anymore, but you'll need to work out a map location instead. Your global gmarkers[] array will still be getting populated with fully-formed GMarker that just aren't used, so let's use that. You can get the location of a GMarker from its .getLatLng() method. So final version of that code - map.openInfoWindowHtml( gmarkers[i].getLatLng() , htmls[i] ); You'll also need to make your GMap2 object 'map' global in scope so that myclick() can find it - at the moment it is local to your load() function. 'var' it outside with your other globals, but still properly create it inside load() just without the var. All untested. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
