Add a milkyway and stars background to the globe
Use the space preset option in the map constructor to provide a more realistic space background for your maps.
This option only takes effect when used in conjunction with the projection: 'globe' parameter.
In this example, we’ll use a Milky Way background, but you can choose: star backgrounds, space backgrounds, and more. See all the predefined presets backgrounds.
Learn more
For space customization and options, check the CubemapLayerConstructorOptions.
Related examples
An extension of MapLibre GL JS
Was this helpful?