Socket
Socket
Sign inDemoInstall

react-ymaps3

Package Overview
Dependencies
9
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-ymaps3

React Yandex Maps API 3 wrapper


Version published
Weekly downloads
38
decreased by-60.42%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-ymaps3

React Yandex Maps Javascript API wrapper https://yandex.ru/dev/jsapi30/doc/en/dg/concepts/general#react

Installation

yarn add react-ymaps3

Usage with typescript

yarn add -D @yandex/ymaps3-types@latest

Requirements

To work you need to get Yandex Maps Javascript API Key with hosts configured.

Minimal working example

export const MyComponent = () => {
  return (
    <div style={{height: 600}}>
      <YMapProvider apiKey="{YMAPS3_API_KEY}">
        <YMap location={{center: [37.95, 55.65], zoom: 10}} mode="vector" theme="dark">
          <YMapDefaultSchemeLayer />
          <YMapDefaultFeaturesLayer />
        </YMap>
      </YMapProvider>
    </div>
  )
}

Features

  • Basic Components
  • Documentation
Packages
  • CartesianProjection
  • Clusterer
  • Controls
  • Hint
  • Markers
  • SphericalMercatorProjection

FAQs

Last updated on 23 Apr 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