Skip to content
Advertisement

Draw Lines between Multiple markers on Google Map

I am little new in JavaScript and Google Map. I am trying to draw lines between my multiple location. I am following this example.

My Code is like this

JavaScript

Its showing places fine and without issue. Its just not drawing the lines. I am getting error like below

JavaScript

I am not getting idea what I should do for fix the issue. Let me know if any expert here can help me for the same. Thanks!

Advertisement

Answer

You should build a proper LatLng Obj

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement