Leaflet map html example - basic

This simple html example shows how create a Leaflet map using an IDAHO TMS layer.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>IDAHO Leaflet demo</title>

    <link rel="stylesheet" href="" />
    <script src=""></script>
            border: 1px solid #ddd;
            background-color: #ddd;
            width: 100%;
            height: 400px
<div id="map"></div>
<script type="application/javascript">
    var token = "INSERT TOKEN HERE";
    var idahotmslayer = '{z}/{x}/{y}?bands=4,2,1&token='+token;
    var leafletlayer = new L.TileLayer(idahotmslayer, {minZoom: 11, maxZoom: 20});
    var map ='map', {
        center: [37.55, -122.32],
        zoom: 13

To use this example, replace "insert token here" with a valid GBDX token string.

var token = "INSERT TOKEN HERE";

To learn more about tokens, see Authentication Course.