summaryrefslogtreecommitdiff
path: root/demo1.html
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-05-06 21:31:56 +0100
committerChristopher Baines <mail@cbaines.net>2015-05-13 18:20:04 +0100
commitd72504c5ce791e06fb2427b3fc00a645a94ee5ab (patch)
treeea39536d54fe61bf0f9bd46e04493ef04d00ad22 /demo1.html
downloadosm-introductory-workshop-master.tar
osm-introductory-workshop-master.tar.gz
Initial commitHEADmaster
Diffstat (limited to 'demo1.html')
-rw-r--r--demo1.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/demo1.html b/demo1.html
new file mode 100644
index 0000000..1375217
--- /dev/null
+++ b/demo1.html
@@ -0,0 +1,32 @@
+<html>
+ <head>
+ <link rel="stylesheet" href="leaflet/dist/leaflet.css" />
+ <script src="leaflet/dist/leaflet-src.js"></script>
+
+ <style>
+ body {
+ padding: 0;
+ margin: 0;
+ }
+
+ html, body, #map {
+ height: 100%;
+ }
+ </style>
+ </head>
+ <body>
+ <div id="map">
+ </div>
+
+ <script>
+ var map = L.map('map', {
+ center: [50.9087036, -1.4045204], // The Art House Cafe
+ zoom: 13
+ });
+
+ L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+ attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+ }).addTo(map);
+ </script>
+ </body>
+</html>