diff --git a/map.css b/map.css index 88915c5..7f1fbcf 100644 --- a/map.css +++ b/map.css @@ -76,6 +76,16 @@ table { font: 14px/16px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.0); + padding-top: 20px; + padding-right: 10px; + padding-bottom: 10px; + padding-left: 20px; +} + +.legend { + position: absolute; + left: 33px; + background: rgba(255,255,255,0.7) !important; } .type { diff --git a/map.html b/map.html index 90d0757..f13a85f 100644 --- a/map.html +++ b/map.html @@ -12,13 +12,13 @@ - + - + @@ -92,11 +92,25 @@ +
diff --git a/map.js b/map.js index 46ac7f3..9bf68d9 100644 --- a/map.js +++ b/map.js @@ -57,4 +57,14 @@ $(document).ready(function() { }; sharePane.addTo(map); + + var legend = L.control().setPosition("topleft"); + legend.onAdd = function (map) { + var div = L.DomUtil.create('div', 'legend'); + div.innerHTML = Handlebars.compile($('#legend-template').html())(); + + return div; + }; + + legend.addTo(map); }); diff --git a/schamper.png b/schamper.png new file mode 100644 index 0000000..063b713 Binary files /dev/null and b/schamper.png differ diff --git a/share.jpg b/share.jpg new file mode 100644 index 0000000..c93cf88 Binary files /dev/null and b/share.jpg differ diff --git a/logo.png b/zeus.png similarity index 100% rename from logo.png rename to zeus.png