S
S
Sergei Iamskoi2019-01-29 15:53:49
JavaScript
Sergei Iamskoi, 2019-01-29 15:53:49

Is it possible to dynamically insert an Angular component into I.Maps?

I needed to integrate Yandex.maps into the Angular project. Yandex maps has such functionality as showing a balloon. The content of the balloon is set via

const obj = this.objectManager.objects.getById(objectId);
              obj.properties.balloonContent = '<b>Some body</b>'

and then it displays:
this.objectManager.objects.balloon.open(objectId);
The question is: is it possible to set the content of the balloon through the angular component? Tried like this:
obj.properties.balloonContent = '<app-test-component></app-test-component>';

This does not work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question