Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion www/beam_reach_gpx.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="css/todc-bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="./js/constants.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.css' rel='stylesheet' />

Expand Down Expand Up @@ -124,7 +125,7 @@

<script>

mapboxgl.accessToken = 'pk.eyJ1IjoiY3BzYXJhc29uIiwiYSI6ImNqZjl5dXdrMTE5ajQzM216ZXVyN2pqNmsifQ.2ntB_K2-ar1Y0RUzB1Me5w'
mapboxgl.accessToken = constants.token;

var orcaTrack = $.getJSON('/data/track.geojson');
var shipTrack = $.getJSON('/data/beamreach.geojson');
Expand Down
3 changes: 3 additions & 0 deletions www/js/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const constants={
token:'pk.eyJ1IjoiY3BzYXJhc29uIiwiYSI6IjM5ZGM2MTgxNGIxMTUyM2NhYzU3N2U0Y2VjODY2Zjc2In0.XjvKMZgY5p-AmHgX5fqgtQ'
}
6 changes: 5 additions & 1 deletion www/orca-heatmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<link rel="stylesheet" href="css/todc-bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="./js/constants.js"></script>

<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.css' rel='stylesheet' />

Expand Down Expand Up @@ -128,7 +130,9 @@


// ################### MAPBOX RELATED STUFF ################################
const mapbox_apikey = 'pk.eyJ1IjoiY3BzYXJhc29uIiwiYSI6IjM5ZGM2MTgxNGIxMTUyM2NhYzU3N2U0Y2VjODY2Zjc2In0.XjvKMZgY5p-AmHgX5fqgtQ';

const mapbox_apikey = constants.token;


mapboxgl.accessToken = mapbox_apikey;

Expand Down
3 changes: 2 additions & 1 deletion www/orcasound.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="css/todc-bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="./js/constants.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.css' rel='stylesheet' />

Expand Down Expand Up @@ -124,7 +125,7 @@

<script>

mapboxgl.accessToken = 'pk.eyJ1IjoiY3BzYXJhc29uIiwiYSI6ImNqZjl5dXdrMTE5ajQzM216ZXVyN2pqNmsifQ.2ntB_K2-ar1Y0RUzB1Me5w'
mapboxgl.accessToken = constants.token;

var orcaTrack = $.getJSON('/data/orcaTronSeed.geojson');

Expand Down
6 changes: 5 additions & 1 deletion www/upload_observations.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<link rel="stylesheet" href="css/todc-bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">

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

<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.css' rel='stylesheet' />

Expand Down Expand Up @@ -102,7 +104,9 @@ <h3 class="panel-title">Click on the Water to Make Observations!</h3>
googleSheetButton.addEventListener('click', function() { window.open(googleSheetURL,'_blank') });

// ################### MAPBOX RELATED STUFF ################################
const mapbox_apikey = 'pk.eyJ1IjoiY3BzYXJhc29uIiwiYSI6IjM5ZGM2MTgxNGIxMTUyM2NhYzU3N2U0Y2VjODY2Zjc2In0.XjvKMZgY5p-AmHgX5fqgtQ';

const mapbox_apikey = constants.token;


mapboxgl.accessToken = mapbox_apikey;
var map = new mapboxgl.Map({
Expand Down