added zeus logo

This commit is contained in:
feliciaan 2014-12-10 14:00:57 +01:00
parent 68ca02cf09
commit 26c9a23a9f
3 changed files with 21 additions and 1 deletions

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -22,3 +22,9 @@ html, body {
td { td {
width: 14%; width: 14%;
} }
.info {
padding: 6px 8px;
font: 14px/16px Arial, Helvetica, sans-serif;
background: white;
}

View file

@ -43,6 +43,9 @@
{{#if extra}}{{extra}}{{/if}} {{#if extra}}{{extra}}{{/if}}
</div> </div>
</script> </script>
<script id="info-template" type="text/x-handlebars-template">
<a href="http://zeus.ugent.be/"><img src='logo.png'></a>
</script>
<script type="text/javascript"> <script type="text/javascript">
var popuptemplate = Handlebars.compile($('#popup-template').html()); var popuptemplate = Handlebars.compile($('#popup-template').html());
@ -55,7 +58,7 @@
$(document).ready(function() { $(document).ready(function() {
var map = L.map('map').setView([51.0475378, 3.7261835], 13); var map = L.map('map').setView([51.0475378, 3.7261835], 13);
var osm = L.tileLayer('https://{s}.tiles.mapbox.com/v3/feliciaan.keoaj8d5/{z}/{x}/{y}.png', { var osm = L.tileLayer('https://{s}.tiles.mapbox.com/v3/feliciaan.keoaj8d5/{z}/{x}/{y}.png', {
attribution: 'Made by <a href="http://zeus.ugent.be"><img src="logo.png" alt="Zeus WPI"></a> with ❤ and <a href="http://www.mapbox.com/about/maps/" target="_blank">Mapbox</a>' attribution: 'Made by <a href="http://zeus.ugent.be">Zeus WPI</a> with ❤ and <a href="http://www.mapbox.com/about/maps/" target="_blank">Mapbox</a>'
}).addTo(map); }).addTo(map);
$.getJSON('data.json') $.getJSON('data.json')
@ -65,6 +68,17 @@
}); });
map.addLayer(geojson); map.addLayer(geojson);
}); });
var info = L.control();
info.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info');
div.innerHTML = Handlebars.compile($('#info-template').html())();
return div;
};
info.addTo(map);
}); });
</script> </script>
<script> <script>