Answer the question
In order to leave comments, you need to log in
Why don't two Yandex Maps work on a page?
On the apart-bukovel.londhor.com
demo site ,
almost at the very bottom there are tabs in which cards are opened.
So, the first card works, but the second does not. If you change places in the code, they will work the other way around, that is, the cards are working, but apparently somehow they set it up wrong.
Or alternatively: make this code work
var placing = new ymaps.Map("google_map", {
center: [48.353870, 24.426673],
zoom: 16,
controls: []
}),
home_point = new ymaps.Placemark([48.353870, 24.426673],{iconImageHref: 'img/pointer.png'}, {
iconLayout: 'default#image',
iconImageHref: 'img/pointer.png',
iconImageSize: [106, 90],
iconImageOffset: [-52, -45]
});
placing.geoObjects.add(home_point)
.add('zoomControl');
var contacts = new ymaps.Map("contacts_map", {
center: [49.845673, 24.029431],
zoom: 16,
controls: []
}),
contacts_point = new ymaps.Placemark([49.845673, 24.029431],{iconImageHref: 'img/pointer.png'}, {
iconLayout: 'default#image',
iconImageHref: 'img/pointer.png',
iconImageSize: [106, 90],
iconImageOffset: [-52, -45]
});
contacts.geoObjects.add(contacts_point)
.add('zoomControl');
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