diff options
author | hellekin <hellekin@cepheide.org> | 2018-03-09 21:21:22 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2018-03-09 21:21:22 +0100 |
commit | 44238a2723e413fa8036df87d5511318f20169a2 (patch) | |
tree | 26d704484c969f9a613dc644b2a047792cbd672f | |
parent | 85a4418645dd80ad6f72e6b633b0bff2fc7d678a (diff) | |
download | wallonie-demain-proto-44238a2723e413fa8036df87d5511318f20169a2.tar.gz |
Add watermark image for demonstration purpose
-rw-r--r-- | assets/logo-incommon.png | bin | 0 -> 4386 bytes | |||
-rw-r--r-- | assets/mapper.js | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/assets/logo-incommon.png b/assets/logo-incommon.png Binary files differnew file mode 100644 index 0000000..42af4fc --- /dev/null +++ b/assets/logo-incommon.png diff --git a/assets/mapper.js b/assets/mapper.js index 0bff088..cfdee54 100644 --- a/assets/mapper.js +++ b/assets/mapper.js @@ -443,6 +443,25 @@ function current_state() { } +/** + * Add Watermark +**/ +L.Control.Watermark = L.Control.extend({ + onAdd: function(map) { + var img = L.DomUtil.create('img'); + img.src = '/assets/logo-incommon.png'; + 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); + /* function show_markers(sec_id) { // Create corresponding layer |