Answer the question
In order to leave comments, you need to log in
How to make dom element events in template active?
Good afternoon. Created a label with a template
var infoContentLayout = ymaps.templateLayoutFactory.createClass('<div class="content" id="contentgrid" onclick="showMatrix()">Тыкни сюда!</div>');
var marker = new ymaps.Placemark([data.location.latitude, data.location.longitude],
{ hintContent: false }, {
iconOffset: [30, -200],
iconLayout: infoContentLayout
});
mapObj.geoObjects.add(marker);
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