Skip to content
Snippets Groups Projects
Commit f70f5110 authored by Raphael Das Gupta's avatar Raphael Das Gupta
Browse files

Add Leaflet map

parent e3426b20
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>osmaxx &mdash; OpenStreetMap Arbitrary eXcerpt eXport</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
</head>
......@@ -14,11 +15,7 @@
<h1>osmaxx</h1>
<h2>Data selection</h2>
</div>
<div class='col-sm-7' style='background-color:green'>
<p>
(map)
</p>
</div>
<div id='map' class='col-sm-7' style='height: 1000px;'></div>
</div>
<div class="row">
<div class="col-sm-5 form-group">
......@@ -27,6 +24,10 @@
</div>
</form>
<!-- Leaflet -->
<script type="text/javascript" src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script type="text/javascript" src="map.js"></script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script type="text/javascript" src="https://code.jquery.com/jquery.js"></script>
......
map.js 0 → 100644
var map = L.map('map').setView([0, 0], 2);
// add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution : '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment