I am new in javascript and Google map api, so i have encoded points like this: “yzocFzynhVq}@n}@o}@nzD” and trying to draw polyline with it, I haven’t found topics or docs to solve my problem. There are few topics how to decode it, but I don’t need to do that thing. I just need to draw polyline using encoded points. Could somebody give me example?
Share
See the geometry library documentation for decodePath
That will convert your encoded string into an array of google.maps.LatLng objects that can be used to create a Polyline
Working example
working code snippet: