-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapbox-analytics.html
88 lines (82 loc) · 3.59 KB
/
mapbox-analytics.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>Mapbox Analytics API Data</title>
<meta http-equiv="Cache-Control" content="no-store" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.3.latest.js" type="text/javascript"></script>
<script src="mapbox-analytics.js" type="text/javascript"></script>
<style>
.indent-check { margin-left:0; display:block; }
</style>
</head>
<body>
<div class="container container-fluid">
<div class="row">
<div class="input-group mb-3">
<div class="form-group">
<label for="txtUsername">Mapbox Username</label>
<input class="form-control" id="txtUsername" value="tableau-enterprise" aria-describedby="username" placeholder="username">
<small id="emailHelp" class="form-text text-muted">Username for Mapbox Enterprise Accounts only.</small>
</div>
</div>
</div>
<div class="row">
<div class="input-group mb-3">
<div class="form-group">
<label for="txtAPIToken">API Token</label>
<input class="form-control" id="txtAPIToken" aria-describedby="Token" value="" placeholder="API Token">
<small id="emailHelp" class="form-text text-muted">Token should have analytics:read, tilesets:list and styles:list scopes.</small>
</div>
</div>
<!-- <button type="button" id="APIFetchButton" class="btn btn-success" style="margin: 10px;display:none;">Get List of Styles</button>-->
</div>
<!--
<div>
<span class="label label-primary">Choose Tables to Import</span>
<div class="indent-check">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chkAccounts">
<label class="form-check-label" for="chkAccounts">
Accounts
</label>
</div>
</div>
<div class="indent-check">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chkTokens">
<label class="form-check-label" for="chkTokens">
Tokens
</label>
</div>
</div>
<div class="indent-check">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chkStyles">
<label class="form-check-label" for="chkStyles">
Styles
</label>
</div>
</div>
<div class="indent-check">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chkTilesets">
<label class="form-check-label" for="chkTilesets">
Tilesets
</label>
</div>
</div>
</div>
-->
<div class="row vertical-center-row">
<div id="liststyles"></div>
</div>
<div class="row">
<div class="text-center">
<button type="button" id="submitButton" class="btn btn-success" style="margin: 10px;">Get Usage Data</button>
</div>
</div>
</div>
</body>
</html>