D
D
Danya Kozlovskiy2021-03-31 16:18:53
Angular
Danya Kozlovskiy, 2021-03-31 16:18:53

How to add yandex maps in angular?

Greetings, I need to add Yandex maps to the angular application, how to do it in an adequate way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Yakovlev, 2021-03-31
@morto

Something like this for example

ngOnInit() {
    ymaps.ready().then(() => {
      this.map = new ymaps.Map('map', {
        center: [50.450100, 30.523400],
        zoom: 12
      });
    });
  }

You can do everything in the same way as without angular
, but here the developers from Yandex wrote how to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question