Using indoor map load events

Obtain notification that an indoor map has been loaded or unloaded by the streaming system.

    <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.782084, -122.404578],
        zoom: 18,
        indoorsEnabled: true

      function onIndoorMapLoad(event) {
        console.log("Indoor map loaded: " + event.indoorMapId);
        var readableName = map.indoors.tryGetReadableName(event.indoorMapId);
        console.log("readableName: " + readableName);

      function onIndoorMapUnload(event) {
        console.log("Indoor map unloaded: " + event.indoorMapId);

      map.indoors.on("indoormapload", onIndoorMapLoad);
      map.indoors.on("indoormapunload", onIndoorMapUnload);