Skip to content

Polylines

Creating polylines

Use the Polyline component to create a new polyline.

hbs
<GMap @lat={{51.5074}} @lng={{-0.1278}} @zoom={{10}}>
  <Polyline
    @path={{this.flightCoordinates}}
    @geodesic={{true}}
    @strokeColor="orange"
    @strokeOpacity={{1}}
    @strokeWeight={{3}}
  />
</GMap>

Example

Click on the map to append new points to the polyline.