Adding a Leaflet vector layer indoors

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

<!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.782084, -122.404578],
        zoom: 17,
        indoorsEnabled: true,
      });

      // We're just adding a circle, but all of the Leaflet vector overlays in 
      // the examples can be placed in an indoor map by modifying the options to 
      // include the indoorMapId and the indoorMapFloorId, as below
      var circle = Wrld.circle([37.782084, -122.404578], {
          radius: 10.0,
          indoorMapId: "intercontinental_hotel_8628",
          indoorMapFloorId: 1
      }).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