-
Notifications
You must be signed in to change notification settings - Fork 7
/
leaflet1.9.4_example.html
40 lines (31 loc) · 1.08 KB
/
leaflet1.9.4_example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet: 2GIS Example</title>
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<!-- Leaflet JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<script src="dgis.js"></script>
<script src="http://maps.api.2gis.ru/1.0" type="text/javascript"></script>
</head>
<body>
<div id="map" style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"></div>
<script type="text/javascript">
var map = new L.Map("map", {
center: new L.LatLng(54.99014, 73.365319),
zoom: 10,
zoomAnimation: false,
zoomDelta: 0.1,
});
map.attributionControl.setPrefix("<a href='https://leafletjs.com'>Leaflet</a>")
var dgis = new L.DGis();
map.addLayer(dgis);
</script>
</body>
</html>