0.9.2 • Published 7 years ago
react-nagrand-gl v0.9.2
react-nagrand-gl
react-nagrand-gl is a suite of React components for building maps with NagrandGL JS which is a WebGL powered vector tile mapping library.
Prerequisites
- Node.js >= v4
- React >= v15.4
- NagrandGL JS >= v3 (
NGR.version
)
Installation
yarn add react-nagrand-gl
or
npm install react-nagrand-gl --save
Usage
To use any of Nagrand APIs or SDKs, you'll need an access token(same as appKey
), view docs for help.
import MapGL from 'react-nagrand-gl';
<MapGL
accessToken="your access token here"
mapId={2118}
mapStyle={require('./map-style.default.json')}
width={800}
height={600} />
API
License
MIT © jiraiyame
0.9.2
7 years ago