Adding a polygon

Add a polygon to a map. All of the features of Leaflet.js polygons are available. Leaflet polygons will be drawn at terrain level unless the preserveAltitude: true option is specified.

    <script src=""></script>
    <link href="" rel="stylesheet" />
  <div style="position: relative">
    <div id="map" style="height: 400px"></div>
      var map ="map", "your_api_key_here", {
        center: [37.7900, -122.401],
        zoom: 15

      var polygonPoints = [
        [37.786617, -122.404654],
        [37.797843, -122.407057],
        [37.798962, -122.398260],
        [37.794299, -122.395234]];
      var poly = L.polygon(polygonPoints).addTo(map);