N
N
nurzhannogerbek2018-12-03 20:05:46
JavaScript
nurzhannogerbek, 2018-12-03 20:05:46

How to open not a balloon, but a div block when clicking on a label?

Hello comrades! Please help me figure it out.
Is it possible to open not a standard balloon, but a specific div in Yandex Map when clicking on a placemark? Could you please give an example.
For example, I know that Google Maps has such an opportunity:

google.maps.event.addListener(marker, 'click', (function (content, item) {
    return function () {
        // Показываем информационное окна
        $("#information_window").css("visibility", "visible");
        $("#information_window").css("opacity", "1");
    };
})(markers_information, item));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Ermilichev, 2018-12-03
@nurzhannogerbek

myPlacemark.events.add('click', function (e) {
    alert('Привет, покажи-ка div :)');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question