R1ZEN / react-yandex-maps

Yandex.Maps API bindings for React (fork https://github.com/gribnoysup/react-yandex-maps)
https://pbe-react-yandex-maps.vercel.app
MIT License
120 stars 19 forks source link
react react-yandex-maps yandex-maps yandex-maps-api ymaps

React Yandex Maps

npm npm bundle size

[Yandex Maps API][ymaps-api] bindings for React

[ymaps-api]: https://tech.yandex.com/maps/doc/jsapi/2.1/quick-start/index-docpage/

Features

Installation

npm:

npm install @pbe/react-yandex-maps

yarn:

yarn add @pbe/react-yandex-maps

Getting Started

Try running a simple example:

import React from 'react';
import { YMaps, Map, Placemark } from '@pbe/react-yandex-maps';

export default function App() {
  const defaultState = {
    center: [55.751574, 37.573856],
    zoom: 5,
  };

  return (
    <YMaps>
      <Map defaultState={defaultState}>
        <Placemark geometry={[55.684758, 37.738521]} />
      </Map>
    </YMaps>
  );
}

Documentation

The React Yandex Maps docs are located at website

Contribution

We appreciate your help!

To contribute, please read our contributing instructions.

License

MIT