0.1.1 • Published 2 years ago
react-maps-loader-naver v0.1.1
React Maps Loader Naver
react-maps-loader-naver is a component written over a small set of the Naver Maps API. It allows you to render any React component on the Naver Map.
Installation
npm:
npm install --save react-maps-loader-naveryarn:
yarn add react-maps-loader-naverUsage
import NaverMap from 'react-maps-loader-naver';
<div style={{ height: '100vh', width: '100%' }}>
<NaverMap
apiKey=/* YOUR KEY HERE */
options={{
zoomControl: true,
zoomControlOptions: {
style: 2,
position: 7,
},
...
}}
items={[
{
id: 1,
position: {
lat: 37.541,
lng: 126.986,
},
},
...
]}
/>
</div>My map doesn't appear!
- Make sure the container element has width and height. The map will try to fill the parent container, but if the container has no size, the map will collapse to 0 width / height. This is not a requirement for
react-maps-loader-naver, its a requirement for naver-maps in general.
Features
- Load the Naver Maps API while the first usage of the react component.
- Create a map by adding map control options with the data specified in
options. - Create markers with the data specified in
items.
0.1.1
2 years ago
0.1.0
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.14-alpha.0
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.10-alpha.0
2 years ago
0.0.11-alpha.0
2 years ago
0.0.9
2 years ago
0.0.13-alpha.0
2 years ago
0.0.8-alpha.0
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.4-alpha.0
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.2-alpha.0
2 years ago
0.0.1
2 years ago