Add an atmospheric glow (halo) around the globe

Use the halo:true option in the map constructor to enable a simple halo. This feature adds an atmospheric glow around the globe, simulating the visual effect of Earth’s atmosphere when viewed from space.

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",
  halo: true
});

Learn more

For halo customization, check the RadialGradientLayerConstructorOptions.

Add a custom halo around the globe

Globe with custom halo

Examples

Add a custom atmospheric glow effect around your globe.

Custom night satellite image in a goble with space background

Night globe in space

Examples

Display Earth's night satellite imagery on a 3D globe.

How to turn on the globe projection

Globe projection

Examples

Enable the 3D globe map projection in your application.

Add a start space background to the globe

Globe with initial space background

Examples

Add a deep space background environment to the globe.

Was this helpful?