javascript - How to display dotted walkway on google maps -


is there way show dotted route on website using google maps + javascript.

i way able paint simple route using google directions api , directionsrenderer , looks this:

simple line

but want one:

enter image description here

this hard one, managed figure out..

it's not same, tweak bit yourself. can make custom "shape", can creating custom path. reference

the way did using polyline custom icon, code:

var linesymbol = {     path: google.maps.symbolpath.circle,     fillopacity: 1,     scale: 3 };  polylineoptionsactual = new gm.polyline({     strokecolor: '#9f98ff',     strokeopacity: 0,     icons: [{         icon: linesymbol,         offset: '0',         repeat: '10px'     }], }), 

fiddle


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Add class to another page attribute using URL id - Jquery -