maplace.js icon indicating copy to clipboard operation
maplace.js copied to clipboard

How to supressMarkers from directions?

Open rafatrace opened this issue 7 years ago • 1 comments

How do I use supressMarkers options on directions type, to remove A and B points. I read #31 but it was very old and didn't solve the problem.

Any new tip on how to achieve this? Thanks.

rafatrace avatar Jul 08 '16 12:07 rafatrace

You'll need to modify the source at this line: https://github.com/danielemoraschi/maplace.js/blob/master/src/maplace.js#L710

Adding the option "suppressMarkers" as per Google reference https://developers.google.com/maps/documentation/javascript/reference#DirectionsRendererOptions but I haven't tested the result.

I try to add the option to one of the next versions.

Thank you

danielemoraschi avatar Aug 08 '16 11:08 danielemoraschi