I am using the Google Maps JavaScript api
to draw routes between points.
I don't want the line to appear between the start and end points, nor do I want the markers to appear.
I have tried to make the start and end points invisible by setting strokeOpacity
to 0.00001
. I have also tried commenting out any pieces of code related to placing a marker, such as marker.setPosition(endLocation.latlng);
How do I make the line NOT appear, and make the markers NOT appear, while keeping the same movement functionality?
Link to Code: http://codepen.io/maudulus/pen/yePGRr