Commit 0858877f authored by Yuri Bondarenko's avatar Yuri Bondarenko

qwe

parent aeeb9c75
......@@ -23,12 +23,13 @@ export default class YMaps extends Component {
const el = document.querySelector( this.props.selector );
ymaps.load( '//api-maps.yandex.ru/2.1/?lang=en_RU' ).then( maps => {
this.state.mapInstance = new maps.Map( el, {
center: [ parseFloat( this.props.lat ), parseFloat(this.props.lon) ]
});
})
.catch( error => console.log( 'Failed to load Yandex Maps', error ) );
this.props.mapInstance = new ymaps.Map(
el,
{
center: [55.757, 37.62233],
zoom: 11
}
);
}
......
......@@ -18,6 +18,7 @@
@@include( './components/ymaps/index.html' )
<script src="https://api-maps.yandex.ru/2.1/?apikey=fa88ed96-7c2b-4d07-8e74-1ac86a9ac3fd&lang=ru_RU" type="text/javascript"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=default,fetch"></script>
<script src="/assets/js/app.js?@@rev"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment