forked from theKashey/y2FastOverlay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfast-overlay.case.html
More file actions
34 lines (27 loc) · 986 Bytes
/
fast-overlay.case.html
File metadata and controls
34 lines (27 loc) · 986 Bytes
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Ajax - Layer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src='http://yandex.st/jquery/1.7.2/jquery.min.js'></script>
<script src="http://api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU&mode=debug&ns=ymaps">
</script>
<script src='y2fastOverlay.js'></script>
</head>
<body>
<script type="text/javascript">
ymaps.ready(function () {
var center = [55.78641288270882, 37.51383301425924];
var map = new ymaps.Map('map', {
center: center,
zoom: 10
});
for (var i = 0; i < 1000; i++) {
(new Y2FastOverlay(new ymaps.geometry.Point([Math.random() -0.5 + center[0], Math.random() -0.5 + center[1]]))).setMap(map);
}
});
</script>
<div id="map" style="height: 500px; width: 100%;"></div>
</body>
</html>