mmr-gl-react
v0.0.12
Published
React components for MMR GL JS-compatible libraries
Downloads
582
Readme
mmr-gl-react
is a suite of React components designed to provide a React API for MMR GL JS-compatible libraries.
Installation
Using mmr-gl-react
requires react >= 16.3
.
npm install --save mmr-gl-react mmr-gl
Example
import * as React from 'react';
import Map from 'mmr-gl-react';
const ACCESS_TOKEN = ''
function App() {
return <Map
initialViewState={{
longitude: -100,
latitude: 40,
zoom: 3.5
}}
style={{width: 600, height: 400}}
mapStyle="vkmaps://api/styles/main_style.json"
vkAccessToken={ACCESS_TOKEN}
/>
}