Socket
Socket
Sign inDemoInstall

react-maps-loader-naver

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-maps-loader-naver

React map component wrapping the Naver Maps API


Version published
Maintainers
1
Created

Readme

Source

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-naver

yarn:

yarn add react-maps-loader-naver

Usage

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.

FAQs

Last updated on 12 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc