Answer the question
In order to leave comments, you need to log in
How to use yandex maps api in angular 7?
Please tell me, I want to make a component that would display a Yandex map and pass different data to it to display labels. I tried using JS but it didn’t work out for me (. I
also tried to connect api in index.html as it says on the Yandex website, and in app.component.html insert divs with id="map" as in the documentation, and in the same place in the tag
Answer the question
In order to leave comments, you need to log in
It is difficult to give a hint if there are no details of the problem. How they connected, what errors they got. It can be assumed that the initialization code is executed before the Yandex API is loaded. One way to ensure that the map is initialized in a timely manner is to do it manually, for example after loading the API: https://medium.com/better-programming/angular-load...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question