Displaying the name of an indoor map

Show the name of an indoor map in a Leaflet popup. Click one of the blue markers to enter an indoor map. Close the popup bubble to exit the building.

    <script src=""></script>
    <link href="" rel="stylesheet" />
  <div id="content" style="position: relative">
    <div id="map" style="height: 400px"></div>
      var map ="map", "your_api_key_here", {
        center: [37.7858, -122.401],
        zoom: 15,
        indoorsEnabled: true
      function onIndoorMapEntered(event) {
        var latLng = map.getCenter();
        var buildingName = event.indoorMap.getIndoorMapName();

        var popup = L.popup().setLatLng(latLng).addTo(map);
        map.on("popupclose", function() { map.indoors.exit(); })

      map.indoors.on("indoormapenter", onIndoorMapEntered);