Skip to content

Commit

Permalink
apply mapbox token
Browse files Browse the repository at this point in the history
  • Loading branch information
mradamcox authored May 3, 2024
1 parent 8b8392a commit 68c1393
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js"></script>

<! -- Load secrets from file -->
<script src="./secrets.js" />

<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; };
Expand Down Expand Up @@ -63,10 +66,10 @@ <h5> Proportion of Neighborhood Residents Self-Identified as Black or African Am

<div id='map'> </div>

<script src="./secrets.js" />


<!-- Temp -- Need to push to Github Environmental Secret -->
mapboxgl.accessToken = 'MAPBOX_API_TOKEN';
mapboxgl.accessToken = mapboxToken;

var map = new mapboxgl.Map({
container: 'map',
Expand All @@ -89,4 +92,4 @@ <h5> Proportion of Neighborhood Residents Self-Identified as Black or African Am

</body>

</html>
</html>

0 comments on commit 68c1393

Please sign in to comment.