react-yandex-maps
Yandex Maps API bindings for React.
Install
Components
Basic components
<YMaps />
- provides child components with yandex maps api via context<Map />
- Map instance<Clusterer />
- Clusterer instance<ObjectManager />
- ObjectManager instance<GeoObject />
- generic GeoObject instance<Control />
- generic Control instance
GeoObject shorthands
<Placemark />
<Polyline />
<Rectangle />
<Polygon />
<Circle />
Control shorthands
<Button />
<FullscreenControl />
<GeolocationControl />
<RouteEditor />
<RulerControl />
<SearchControl />
<TrafficControl />
<TypeSelector />
<ZoomControl />
<ListBox />
<ListBoxItem />
With Yandex Maps API
With react-yandex-maps
Enterprise
react-yandex-maps
library also supports enterprise version of Yandex.Maps API:
Events
All Objects events are available, just use camelCase event names instead of
default ones (for example geometrychange -> onGeometryChange
):