Playground

Pick a component, edit its inputs and watch the real map update. The snippet below always matches what you see, ready to paste into your app.

A polyline through coordinates, styled with color, width and dashes.

Popups, terrain, vector and image sources and draw are not in the playground; see the component docs.

Code

<ng-map [center]="[-73.99, 40.74]" [zoom]="10.8">
  <ng-map-route id="route" [coordinates]="coordinates" />
</ng-map>