2gis-maps
Version:
Interactive 2GIS maps API, based on Leaflet
31 lines (22 loc) • 647 B
HTML
<html>
<head>
<meta charset='utf-8'>
<title>Leaflet.Control.Locate Demo</title>
<script src="http://maps.api.2gis.dev/2.0/loader.js"></script>
</head>
<body>
<div id="map" style="width: 100%; height: 600px; border: 1px solid #ccc;"></div>
<script type="text/javascript">
DG.then(function () {
map = new DG.Map('map', {
center: new DG.LatLng(54.980206086231, 82.898068362003),
zoom:15,
locationControl: true,
key: DG.config.key || 'Your API access key'
});
map.locationControl.setPosition('bottomleft');
});
</script>
</body>
</html>