Cleanup some JS files and webpack info

This commit is contained in:
Nabeel Shahzad
2017-12-27 17:20:34 -06:00
parent a2e6ea5b49
commit ae2a030ef8
339 changed files with 288813 additions and 29 deletions
@@ -0,0 +1,36 @@
---
layout: tutorial_frame
title: Watermark control
---
<script type='text/javascript'>
var map = L.map('map', {
center: [40, 0],
zoom: 1
});
var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
attribution: "CartoDB"
}).addTo(map);
L.Control.Watermark = L.Control.extend({
onAdd: function(map) {
var img = L.DomUtil.create('img');
img.src = '../../docs/images/logo.png';
img.style.width = '200px';
return img;
},
onRemove: function(map) {
// Nothing to do here
}
});
L.control.watermark = function(opts) {
return new L.Control.Watermark(opts);
}
L.control.watermark({ position: 'bottomleft' }).addTo(map);
</script>