google maps api 3 - Auto display info windows on markers from directionsRenderer -



google maps api 3 - Auto display info windows on markers from directionsRenderer -

the directionsrenderer creates marker @ origin , end destination. right have click marker display info window. how automatically display info window? process of creating 2 markers abstracted directionsrenderer i'm not sure how find 2 markers.

1) utilize suppressmarkers parameter of directionsrenderer

directionsdisplay = new google.maps.directionsrenderer({ suppressmarkers: true });

2) add together own markers on start (and/or end) point(s)

jsfiddle demo

3) phone call open() method of infowindow forcefulness open https://developers.google.com/maps/documentation/javascript/reference?#infowindow

hope helps.

google-maps-api-3

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -