summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/logo-incommon.pngbin0 -> 4386 bytes
-rw-r--r--assets/mapper.js19
2 files changed, 19 insertions, 0 deletions
diff --git a/assets/logo-incommon.png b/assets/logo-incommon.png
new file mode 100644
index 0000000..42af4fc
--- /dev/null
+++ b/assets/logo-incommon.png
Binary files differ
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