2gis-maps
Version:
Interactive 2GIS maps API, based on Leaflet
26 lines (24 loc) • 649 B
HTML
<html>
<head>
<meta charset='utf-8'>
<title>DGRulerControl 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(51.7302800, 36.1938900),
'zoom': 17
});
map.addControl(DG.control.ruler());
});
</script>
</body>
</html>