On Nov 19, 10:51 am, Craig Hunt <huntma...@gmail.com> wrote: > Hello everyone. I am using Maps Javascript API V3 and have a problem > that's been bothering me. When the map first loads, I have a custom > marker (icon) at a certain location and an infoWindow popping off this > location. I also have a form which allows a user to enter in > their 'start' address and it will give them directions to the location > where my custom marker is (hard coded). > > Everything works fine except that when the directions overlay on the > map I still have my custom marker and the infoWindow. What I would like > to do is remove these 2 items and only show the directions on the map > with the 'A' (start) and 'B' (end) markers. > > The page is
http://craighunt.xcelco.on.ca/wedding/maps.php Remove them when you call: directionsDisplay.setDirections(result); -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.