2gis-maps
Version:
Interactive 2GIS maps API, based on Leaflet
26 lines (24 loc) • 668 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>DGTrafficControl demo</title>
<script src="http://maps.api.2gis.ru/2.0/loader.js"></script>
<style type="text/css">
html,body { height: 100%; margin: 0; padding: 0; }
#map { width: 100%; height: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
DG.then(function () {
map = new DG.Map('map', {
'center': new DG.LatLng(59.92160287366319, 30.313425064086918),
'zoom': 15
});
map.addControl(DG.control.traffic());
});
</script>
</body>
</html>