Polylines

Learn how to add or remove polylines on a map.

The Polyline object is used to draw connected lines on a map. It defines a linear overlay of line segments connected on the map. A Polyline is a list of LatLng locations on which line segments are drawn in an ordered sequence. They’re an excellent way to highlight paths or routes between specific points.

Get hands-on with 1200+ tech skills courses.