Answer the question
In order to leave comments, you need to log in
Several Yandex maps on one page with a call when clicking on a class?
Inside a large (even unlimited) number of tabs there is a map, I initialize:
ymaps.ready(function(){
$('.tab-item').click(function(){
var myMap;
initYaMap();
myMap = new ymaps.Map(document.getElementsByClassName('tracking-map__yandex-map'), {
center: [53.35, 83.73],
zoom: 4
});
});
});
function initYaMap () {
}
$('.classname')[0]
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