Так, а зачем вы создаете второй раз карту?!
ymaps.ready(function () {
let ymap = document.querySelector('.contacts__map');
let coordinates = ymap.getAttribute('data-coordinates');
let address = ymap.getAttribute('data-address');
let myMap = new ymaps.Map('ymap', {
center: [53.2584970, 50.2369070],
zoom: 16
}, {
searchControlProvider: 'yandex#search'
});
let myPlacemark = new ymaps.Placemark(myMap.getCenter(), {
balloonContent: address
}, {
iconLayout: 'default#image',
iconImageHref: WPJS.siteUrl + '/assets/img/common/marker.svg',
iconImageSize: [40, 63.2],
iconImageOffset: [-50, -38]
});
let myPlacemark2 = new ymaps.Placemark2(myMap.getCenter(), {
balloonContent: address
}, {
iconLayout: 'default#image',
iconImageHref: WPJS.siteUrl + '/assets/img/common/marker.svg',
iconImageSize: [40, 63.2],
iconImageOffset: [-50, -38]
});
myMap.geoObjects.add(myPlacemark);
myMap.geoObjects.add(myPlacemark2);
myMap.behaviors.disable('scrollZoom');
});