Get Started
Introduction
The NextBillion.ai Maps provides a JavaScript library to render interactive maps that display raster or vector tiles, markers, static and dynamic graphic elements for your mapping and visualization needs. It is part of NextBillion.ai Maps platform, which provides hyper local geospatial AI in our mapping eco-system, including Routing and ETAs, Location Management, Map Production and Maintenance, and much more.
Hello, World
Below is a basic map generated with NextBillion.ai Maps. It positions at Los Angeles with a zoom level of 10. Try dragging and scrolling on it!
Installation
From CDN
You can use NextBillion.ai Maps SDK's features with our CDN. If the visitor to your web site has already downloaded NextBillion.ai Maps, it won't have to be re-downloaded.
From NPM
NextBillion.ai Maps is also available as an NPM package. You can install it with the npm
command:
Or if you prefer the yarn
command:
This will install NextBillion.ai Maps to the node_modules
folder. You will find all released JavaScript
, map
and CSS
files in node_modules/nbmap-gl/dist
.
In your project, taking a React.js one created with create-react-app
for example, you can use NextBillion.ai Maps like this: