-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
38 lines (31 loc) · 1.08 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MapPaint</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src="dist/MapPaint.js"></script>
<link rel="stylesheet" href="dist/MapPaint.css" type="text/css" />
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body>
<div id="mappaint-map"></div>
<script>
var map = L.map("mappaint-map", {
attributionControl: false,
zoomControl: false
}).setView(new L.LatLng(59.901111, 10.752778), 14);
L.tileLayer('http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg', {
subdomains: ['a', 'b', 'c', 'd'],
minZoom: 3,
detectRetina: true,
maxNativeZoom: 17
}).addTo(map);
map.MapPaint.enable();
map.addControl(new MapPaint.SwitchControl());
// L.control.zoom().addTo(map);
</script>
</body>
</html>