Answer the question
In order to leave comments, you need to log in
How to make layout in yandex map using React?
Maybe someone has already encountered.
I use https://github.com/effrenus/yandex-map-react-examples.
I create a map and a label on it with
import { Map, Marker, BalloonLayout } from 'yandex-map-react';
<Map width={'100%'} center={[59.91817154482064,30.30557799999997]} zoom={10}>
<Marker lat='59.823' lon='30.28' >
</Marker>
</Map>
<Map width={'100%'} center={[59.91817154482064,30.30557799999997]} zoom={10} properties={{ balloonContentHeader: "Ресторан Катюша", balloonContentBody: "www.restorankatusha.com" }}>
<Map width={'100%'} state={mapState} center={[59.91817154482064,30.30557799999997]} zoom={10}>
<Marker lat='59.823' lon='30.28' >
<BalloonLayout>
<div className="Layout">
<a href="www.google.com">Hello</a>
</div>
</BalloonLayout>
</Marker>
))}
</Map>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question