API Endpoints

Map Widget Library JS Mode

Use Only Map Widget

<html>
  <head>
    <title>Map Widget</title>
    <link rel="icon" type="image/png" href="https://s3.amazonaws.com/instaleap/favicon.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script src="https://widgets.instaleap.tech/widget-2-0-0.js"></script>
  </head>
  <body class="body">
    <div id="widget" style="max-width: 500px; height: 300px; margin: 24px auto 0; box-shadow: 0px 2px 6px rgba(40, 61, 86, 0.2); border-radius: 8px;"></div>
  </div>
    <script>
      const map = window.instaleap.map;
      map.render({
          job: 'myJobId', // Required
          container: '#widget', // Required
          token: 'myToken', // Required
         env: "staging" || "production", // Required
        });
    </script>
  </body>
</html>