1

Topic: Connection Yandex of cards

index.html:

<! DOCTYPE html>
<html lang = "ru">
<head>
<title> TEST </title>
<script src = "https://api-maps.yandex.ru/2.1/?lang=ru_RU" type = "text/javascript">
</script>
</head>
<body>
<div id = "map" class = "map"> </div>
<script src = "main.js" type = "text/javascript"> </script>
</body>
</html>

main.js:

ymaps.ready (init);
function init () {
var map = new ymaps. Map (' map ', {
center: [59.94, 30.32];
zoom: 12
});
}

We open in chrome, on an output empty page, what not so? sad

2

Re: Connection Yandex of cards

JDS;

<div id = "map" style = "height: 500px;" class = "map"> </div>

3

Re: Connection Yandex of cards

JDS;
And generally - you CSS forgot to connect.