-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
23 lines (23 loc) · 1020 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<script src="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.js"></script>
<script src="leaflet-fractional-zoom-control.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.css" />
</head>
<body>
<div id="map" style="width: 800px; height: 600px"></div>
<script>
var map = L.map('map',{
zoomControl:false
}).setView([40,-100], 12);
L.tileLayer('http://tile.osm.org/{z}/{x}/{y}.png', {
//maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ',
id: 'mapbox.streets'
}).addTo(map);
map.addControl(L.control.fractionalZoom({position: 'topright', zoomIncrement:.2}));
</script>
</body>
</html>