How to draw the marker on the center of the polyline
<p>I am working on google maps and location listener. I am drawing the polyline on the map with my movement using location listener. Now i want the starting point and the current position on the polyline. I am setting the customized icon as a marker but it appears on the left side of the polyline. I want it exact in the center and the ending point of the polyline.
Any Solutions,,??</p>

<p><a href="https://i.stack.imgur.com/IqlGn.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/IqlGn.jpg" alt="What i want"></a></p>

<p><a href="https://i.stack.imgur.com/0HB6M.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/0HB6M.jpg" alt="What is the problem"></a></p>