Add a start space background to the globe

Use the space:true option in the map constructor to simulating a deep space background. This feature allows customizing the background environment of the globe, simulating deep space or skybox effects.

This option only takes effect when used in conjunction with the projection: 'globe' parameter.

NPM module setup


npm install --save @maptiler/sdk
import { Map, MapStyle, config } from '@maptiler/sdk';
import '@maptiler/sdk/dist/maptiler-sdk.css';

config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
const map = new Map({
  container: 'map', // container's id or the HTML element in which the SDK will render the map
  style: MapStyle.SATELLITE,
  projection: "globe",
  space: true
});

Learn more

For space customization and options, check the CubemapLayerConstructorOptions.

Add a custom halo around the globe

Globe with custom halo

Examples

Add a custom atmospheric glow effect around your globe.

Add a custom color background to the globe

Globe with color background

Examples

Add a custom color background to the globe.

Add a milkyway and stars background to the globe

Globe with milkyway and stars

Examples

Add a milkyway and stars background to the globe.

How to turn on the globe projection

Globe projection

Examples

Enable the 3D globe map projection in your application.

Was this helpful?