L
L
Lici2017-08-02 18:45:06
HTML
Lici, 2017-08-02 18:45:06

How to add video to google map?

I want to insert a map from Google or Yandex into the site and place objects on it and so that a window with a video pops up on click. Is it possible to make this the standard functionality of Yandex-google or some other maps?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-08-02
@webirus

Google Maps
Manual https://developers.google.com/maps/documentation/j...
Example https://developers.google.com/maps/documentation/j...

gmap.addMarker({
    lat: 54.630209, lng: 39.724659, // координаты точки
    title: 'Название маркера',
    icon: 'Ссылка на картинку маркера',
    infoWindow: {
        content: '<div>Совершенно любое содержимое дива, любой html-код</div>'
    },
    click: function(e) {
        gmap.setCenter('54.631842', '39.724659'); // поместить маркер в центр карты
    }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question