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
To start with NextBillion.ai Maps, we'll initialize a new Map instance. It's as easy as breeze. With a Map instance, you can add markers, draw shapes, add tooltips, and calling the APIs such as Direction, Distance Matrix and Snap To Roads and so many more. Feel free to edit the sample code below to play around.
Examples
Plain HTML
To use NextBillion.ai Maps in a plain HTML project, simply reference the assets from our CDN and you are ready to go.
You can use the code below to render a map like this: