• Optimization
  • Navigation
  • Tracking
  • Maps
  • Places

Switch Theme

A newer version of Maps for web SDK is available
A newer version of the SDK is available and is recommended for all users. Learn about the latest version, V2.0, in the Maps for web v2.0 documentation

NextBillion.ai Maps comes with a built-in dark theme that you can use directly.

Please note as a side effect of changing a theme, it will clear all the shapes drawn on the map. Markers, Popups or Tooltips are not affected.

1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <title>NBMap Basic Example</title>
6 <link href="https://maps-gl.nextbillion.io/maps/api/css" rel="stylesheet" />
7 <style>
8 * {
9 margin: 0;
10 padding: 0;
11 }
12 #map {
13 width: 100vw;
14 height: 100vh;
15 }
16 #toggle-btn {
17 position: absolute;
18 top: 20px;

Have Questions ?