Skip to content

Commit

Permalink
Fog and zoom options
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Sep 18, 2023
1 parent 6b9b9ad commit 389f640
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
style: 'mapbox://styles/mapbox/dark-v11',
projection: 'globe',
center: [0,0],
zoom: 0.9,
zoom: -0.3,
interactive: false
});
var detailMbgl = new mapboxgl.Map({
Expand Down Expand Up @@ -271,8 +271,7 @@
// wait for map to load before adjusting it
overviewMbgl.on('style.load', function() {
overviewMbgl.setFog({
color: 'rgb(186, 210, 235)', // Lower atmosphere
'high-color': 'rgb(36, 92, 223)', // Upper atmosphere
'range': [-1, 1],
'horizon-blend': 0.02, // Atmosphere thickness (default 0.2 at low zooms)
'space-color': 'rgb(11, 11, 25)', // Background color
'star-intensity': 0.6 // Background star brightness (default 0.35 at low zoooms )
Expand Down

0 comments on commit 389f640

Please sign in to comment.