On Nov 19, 11:52 am, Craig Hunt <huntma...@gmail.com> wrote:
> Thanks Larry but how do I remove them? I have tried
> myInfoWindow.close(myMap,myMarker); to remove the info box but that

You should read the documentation.

This works for me.
myMarker.setMap(null);
myInfoWindow.close();

> didn't work. I'm still at a loss. What syntax do I need to use and
> where do I stick it?

Where you make the call to render the directions
directionsDisplay.setDirections(result);

(I assume you only want it to happen if you get a valid response to
the directions request...)

  -- 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.

Reply via email to