Skip to content

Commit

Permalink
revert accidentally changed files to main
Browse files Browse the repository at this point in the history
  • Loading branch information
akoylasar committed Jan 17, 2023
1 parent 63c0f18 commit ad9c713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion debug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
zoom: 12.5,
center: [-122.4194, 37.7749],
style: 'mapbox://styles/mapbox/streets-v11',
hash: true
hash: true,
projection: 'globe'
});

</script>
Expand Down
13 changes: 2 additions & 11 deletions debug/terrain-debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,16 @@
<label><input id='circles-checkbox' type='checkbox'> circles</label><br />
<label><input id='hillshade-checkbox' type='checkbox'> hillshade using terrain</label><br />
<label><input id='custom-checkbox' type='checkbox'> add a custom layer</label><br />
<label><input id='wind-checkbox' type='checkbox'> wind</label><br />
<label><input id='repaint-checkbox' type='checkbox'> repaint. FPS: </label><label id='fps'>0</label><br />
</div>

<script src="webgl-wind-dist/dist/wind-gl.js"></script>
<script src="wind-custom-layer.js"></script>
<script src='../dist/mapbox-gl-dev.js'></script>
<script src='access_token_generated.js'></script>
<script>

var map = window.map = new mapboxgl.Map({
container: 'map',
zoom: 0.5,
zoom: 13.5,
center: [-122.45814, 37.76159],
style: 'mapbox://styles/mapbox/streets-v11',
// style: 'mapbox://styles/claretrainor/ck2pc4ljf1jbe1codiy7oxzjg', // Style with additional traffic vector source.
Expand Down Expand Up @@ -263,7 +260,6 @@
map.setFog({});

map.addLayer(highlightLayer);
map.addLayer(windLayer);

document.getElementById('road-label-checkbox').onclick();
document.getElementById('satellite-checkbox').onclick();
Expand All @@ -272,7 +268,6 @@
document.getElementById('buildings-checkbox').onclick();
document.getElementById('circles-checkbox').onclick();
document.getElementById('custom-checkbox').onclick();
document.getElementById('wind-checkbox').onclick();
});

document.getElementById('show-tile-boundaries-checkbox').onclick = function() {
Expand Down Expand Up @@ -305,7 +300,7 @@
};

document.getElementById('terrain-checkbox').onclick = function() {
map.setTerrain(this.checked ? {"source": "mapbox-dem", 'exaggeration': 80} : null);
map.setTerrain(this.checked ? {"source": "mapbox-dem"} : null);
};

document.getElementById('satellite-checkbox').onclick = function() {
Expand All @@ -326,10 +321,6 @@
map.setLayoutProperty('highlight', 'visibility', this.checked ? 'visible' : 'none');
};

document.getElementById('wind-checkbox').onclick = function() {
map.setLayoutProperty('wind', 'visibility', this.checked ? 'visible' : 'none');
};

document.getElementById('hillshade-checkbox').onclick = function() {
if (!map.getLayer(hillshadeId)) {
// Inject hillshade from terrain layer
Expand Down

0 comments on commit ad9c713

Please sign in to comment.