A
A
Alexey Smirnov2016-03-26 22:09:58
JavaScript
Alexey Smirnov, 2016-03-26 22:09:58

How to add a Yandex map created using the map constructor to a modal window on a website?

Hello.

I'm trying to display in a separate window an interactive Yandex map created using the map designer :

jsfiddle.net/PFVxK/2841/

I create a separate window using the FancyBox library .

But for me, as you can see in jsfiddle, the interactive map is displayed immediately, and I need the map to appear only after clicking on "Some link".
At the same time, if you perform any mouse manipulations with the map that appears, the map will immediately be displayed in the FancyBox window.

How can I make the interactive map appear only in the FancyBox window and only after clicking on "Some link" with the mouse?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Zuev, 2016-03-26
@ERAFY

You can try adding dynamically.
Example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question