Adding a leaflet polygon indoors

Enter the Intercontinental Hotel and go up one floor to view the polygon.

<!DOCTYPE HTML>
<html>
  <head>
    <script src="https://unpkg.com/wrld.js@1.x.x"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.1/leaflet.css" rel="stylesheet" />
    <style>
      #floorButtons {
        position: absolute;
        z-index: 20;
      }

      #floorButtons button {
        display: block;
        width: 100%;
      }
    </style>
  </head>
  
  <body>
  <div style="position: relative">
    <div id="floorButtons">
      <button type="button" onclick="topFloor()">Top Floor</button>
      <button type="button" onclick="moveUp()">Move Up</button>
      <button type="button" onclick="moveDown()">Move Down</button>
      <button type="button" onclick="bottomFloor()">Bottom Floor</button>
      <button type="button" onclick="exitIndoors()">Exit</button>
    </div>

    <div id="map" style="height: 400px"></div>

    <script>
      var map = Wrld.map("map", "your_api_key_here", {
        center: [37.7858, -122.401],
        zoom: 15,
        indoorsEnabled: true,
      });

      var polygonPoints = [
            [37.782279, -122.404588],
            [37.782262, -122.404359],
            [37.782149, -122.404454],
            [37.782207, -122.404541]];

      var polygonOptions = {indoorMapId: "intercontinental_hotel_8628",
                            indoorMapFloorId: 1};

      var poly = Wrld.polygon(polygonPoints, polygonOptions).addTo(map);

      function topFloor() {
        var indoorMap = map.indoors.getActiveIndoorMap();
        if (indoorMap) {
          map.indoors.setFloor(indoorMap.getFloorCount() - 1);
        }
      }

      function moveUp() {
        map.indoors.moveUp();
      }

      function moveDown() {
        map.indoors.moveDown();
      }

      function bottomFloor() {
        map.indoors.setFloor(0);
      }

      function exitIndoors() {
        map.indoors.exit();
      }
    </script>

  </div>
  </body>
</html>
v1.1.0