summaryrefslogtreecommitdiff
path: root/demo2.html
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-02-05 11:22:13 +0000
committerChristopher Baines <mail@cbaines.net>2015-02-09 09:58:29 +0000
commit00a02018a5e3100c1db302ae5853e41b5c50a723 (patch)
tree17b8f600ef88f8cf1af657a5bb45a3c0816914cd /demo2.html
downloadleaflet-workshop-00a02018a5e3100c1db302ae5853e41b5c50a723.tar
leaflet-workshop-00a02018a5e3100c1db302ae5853e41b5c50a723.tar.gz
Initial commit
Diffstat (limited to 'demo2.html')
-rw-r--r--demo2.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/demo2.html b/demo2.html
new file mode 100644
index 0000000..8418241
--- /dev/null
+++ b/demo2.html
@@ -0,0 +1,40 @@
+<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: 18
+ });
+
+ var tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+ attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+ });
+
+ tileLayer.addTo(map);
+
+ // Add a marker over the Art House Cafe
+
+ var marker = L.marker([50.9087036, -1.4045204])
+
+ marker.addTo(map);
+ </script>
+ </body>
+</html>