Hello everyone, I'm here for the first time I am making a layout, there is a Yandex map on two different pages. But the second card does not load, if you delete the code from js of the first card, then the second one loads whatβs wrong?
var myMap1; var myMap2; ymaps.ready(init); function init () { myMap1 = new ymaps.Map("map1", { center: [55.81254956891398,37.8328265], zoom: 17, controls: [] }); myMap2 = new ymaps.Map("map2", { center: [59.92979687173394,30.37630978241727], zoom: 15, controls: ['zoomControl'] }); var myPlacemark2 = new ymaps.Placemark([59.92979956418111,30.37499549999999], { hintContent: 'ΠΠΊΠΎΠΊΠΎΠ²ΡΠΈΠΊΠΈ', balloonContent: 'Π‘Π°Π½ΠΊΡ ΠΠ΅ΡΠ΅ΡΠ±ΡΡΠ³, ΠΏΡ. ΠΠ°ΠΊΡΠ½ΠΈΠ½Π° 5,<br> ΠΎΡΠΈΡ 512.<br>Π’Π΅Π»: +7 495 268 07 31' }, { preset: 'islands#redIcon' }); myMap2.geoObjects.add(myPlacemark2); }; ΠΏΠ΅ΡΠ²Π°Ρ ΡΡΡΠ°Π½ΠΈΡΠ° <section class="contacts"> <div class="container-fluid"> <div id="map1" style="width: 100%; height: 460px"> <div class="container-fluid"> <div class="row-fluid"> <div class="col-lg-6 col-lg-offset-6 col-md-6 col-md-offset-6 col-sm-6 col-sm-offset-6 col-xs-12 col-xs-offset-0 contacts-xs"> <div class="contacts-block"> <h2>ΠΠΎΠ½ΡΠ°ΠΊΡΡ</h2> <a class="phone" href="tel:84952680731">+7 495 268-07-31</a> <p class="desc">Π·Π²ΠΎΠ½ΠΎΠΊ ΠΏΠΎ Π ΠΎΡΡΠΈΠΈ Π±Π΅ΡΠΏΠ»Π°ΡΠ½ΡΠΉ</p> <a class="mail" href="mailto:info@kovrikeva.ru">E-mail: info@kovrikeva.ru</a> <p class="time">ΠΠ½-Π‘Π± 9:00-18:30</p> <p class="address">Π³. ΠΠΎΡΠΊΠ²Π°, Π©Π΅Π»ΠΊΠΎΠ²ΡΠΊΠΎΠ΅ ΡΠΎΡΡΠ΅ Π΄.100</p> </div> </div> </div> </div> </div> </div> </section> Π²ΡΠΎΡΠ°Ρ ΡΡΡΠ°Π½ΠΈΡΠ° <section class="contacts-page"> <div class="container"> <div class="contacts-content"> <h2>ΠΠΎΠ½ΡΠ°ΠΊΡΡ</h2> <div class="address-block"> <p class="country">Π ΠΎΡΡΠΈΡ</p> <p class="address"><span>Π‘Π°Π½ΠΊΡ ΠΠ΅ΡΠ΅ΡΠ±ΡΡΠ³,</span>ΠΏΡ. ΠΠ°ΠΊΡΠ½ΠΈΠ½Π° 5, ΠΎΡΠΈΡ 512.</p> <a class="phone" href="tel:84952680731">Π’Π΅Π»: +7 495 268 07 31</a> </div> <div class="map-block"> <div id="map2" style="width: 700px; height: 354px"></div> </div> <div class="requisites-block"> <h3>Π Π΅ΠΊΠ²ΠΈΠ·ΠΈΡΡ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ</h3> </div> </div> </div> </section>