javascript - how to make origin marker to bounce in directionsDisplay without using suppressmarkers:true? -


i have developed route 2 places using google maps api .... need origin marker should bounced don't want make suppressmarker value true ... don't want add custom markers... there way make default marker rendered directionsdisplay bounced?

you can change standart markers letters other markers google-chart service.
let me show how add text on marker:

    directionsdisplay = new google.maps.directionsrenderer({           markeroptions: { icon: "https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=sometext|ff0000|000000" }     }), 

or, can take other idea change marker's there: https://developers.google.com/chart/image/docs/gallery/dynamic_icons?hl=fr&csw=1#plain_pin


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -