0.0.7 • Published 5 years ago

@nextbillion/nbmap-gl v0.0.7

Weekly downloads
18
License
MIT
Repository
-
Last release
5 years ago

NBMap GL

NBMap GL is a web map SDK for JavaScript that enables interactive maps with NextBillion's vector tiles service in your web apps.

Basic Usage

<html lang="en">
  <head>
    <link rel="stylesheet" href="TBD" />
  </head>

  <body>
    <!-- A container for the interactive map -->
    <div id="map"></div>

    <!-- Including the scripts to show the map -->
    <script src="TBD"></script>
    <script>
      ;(function () {
        // Minimum code for displaying a map
        nextbillion.apiKey = '123456'
        var map = new nextbillion.maps.Map({
          container: 'map',
        })
      })()
    </script>
  </body>
</html>

Development

Before start, please install Node.js and yarn to install dependencies.

yarn

You can start developing with this command:

yarn dev

You can build a minified version of the SDK with this command:

yarn build