Skip to content

Commit

Permalink
Create demo.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jonshutt committed May 24, 2017
1 parent 25ae142 commit dbfd03f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions demo.html
@@ -0,0 +1,37 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>L.OSGraticule Demo</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<style type="text/css">
html, body { width: 100%; height: 100%; margin: 0; }
#map { width: 100%; height: 100%; }
</style>
</head>

<body>
<div id="map"></div>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script type="text/javascript" src="L.OSGraticule.js"></script>

<script type="text/javascript">

var map = L.map('map',{
center: [56.7969, -5.0036],
zoom: 14,
});

L.tileLayer(
// 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
'http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', {
maxZoom: 18,
}).addTo(map);

L.osGraticule().addTo(map);



</script>
</body>
</html>

0 comments on commit dbfd03f

Please sign in to comment.