Adding the Indoor Control to a map with indoor vector layers

Enter the Intercontinental Hotel and go up one floor using the slider to view the marker and polygons.

<!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" />

    <link href="https://cdn-webgl.wrld3d.com/wrldjs/addons/resources/v1/latest/css/wrld.css" rel="stylesheet"/>
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script>
    <script src="https://cdn-webgl.wrld3d.com/wrldjs/addons/indoor_control/v1/latest/indoor_control.js"></script>
  </head>
  
  <body>
  <div style="position: relative">
    <div id="widget-container" class="wrld-widget-container"></div>
    <div id="map" style="height: 400px"></div>
    <script>
      var map = Wrld.map("map", "your_api_key_here", {
        center: [37.782276519634706, -122.40476157895424],
        zoom: 17,
        indoorsEnabled: true
      });

      var indoorControl = new WrldIndoorControl("widget-container", map);

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

      var marker = Wrld.marker([37.781941, -122.404752], layerOptions).addTo(map);

      var leafletPolygonPoints = [
        [37.782279, -122.404588],
        [37.782262, -122.404359],
        [37.782149, -122.404454],
        [37.782207, -122.404541]
      ];
      var leafletPolygon = Wrld.polygon(leafletPolygonPoints, layerOptions).addTo(map);

      var wrldPolygonPoints = [
        [37.782084, -122.404578],
        [37.782126, -122.404530],
        [37.782057, -122.404440],
        [37.782012, -122.404491]
      ];
      var wrldPolygon = Wrld.polygon(wrldPolygonPoints, layerOptions).addTo(map);
    </script>

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