react-nagrand-gl
v0.9.2
Published
React friendly API wrapper around NagrandGL JS
Maintainers
Readme
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-glor
npm install react-nagrand-gl --saveUsage
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
