-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
56 lines (40 loc) · 1.23 KB
/
map.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>map - Halva202</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="//api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
</head>
<body>
<style>
#map {
height: 300px; padding: 100; margin: 20000;
}
</style>
<div id="map"></div>
</body>
<script>
ymaps.ready(init);
function init() {
var myMap = new ymaps.Map("map", {
center: [53.081713, 25.295363],
zoom: 12
}, {
searchControlProvider: 'yandex#search'
});
myPlacemark = new ymaps.Placemark([53.081713, 25.295363], {
// Чтобы балун и хинт открывались на метке, необходимо задать ей определенные свойства.
balloonContentHeader: "Балун метки2",
balloonContentBody: "Содержимое <em>балуна2</em> метки",
balloonContentFooter: "Подвал2",
iconContent: 'user',
hintContent: "Хинт метки2"
},
{
preset: "islands#redStretchyIcon"
});
myMap.geoObjects.add(myPlacemark);
}
</script>
</html>