1.0.4 • Published 4 years ago
react-yandex-maps-constructor v1.0.4
react-yandex-maps-constructor
React component for Yandex Maps Constructor
Install
npm install --save react-yandex-maps-constructor
Usage
Copy full script code of your Yandex Map Constructor and paste it to script attribute.
import React, { Component } from 'react'
import YandexMapConstructor from 'react-yandex-maps-constructor'
class Example extends Component {
render () {
return (
<YandexMapConstructor script='<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A82bea7622863f2ed81e94d89127e73a7821886976f226e3e00b727819a2835ea&width=500&height=300&lang=ru_RU&scroll=true"></script>' />
)
}
}
License
MIT © spotykatch