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:
but want one:
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' }], }),
Comments
Post a Comment