summaryrefslogtreecommitdiff
path: root/htdocs/mapscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/mapscript.js')
-rw-r--r--htdocs/mapscript.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js
index 87991ce..d33e9e7 100644
--- a/htdocs/mapscript.js
+++ b/htdocs/mapscript.js
@@ -577,6 +577,8 @@ L.MyControl = L.Control.extend({
link.href = '#';
link.title = this.options.title;
link.innerHTML = this.options.html;
+ L.DomEvent.on(link, 'mousedown', L.DomEvent.stop);
+ L.DomEvent.on(link, 'mouseup', L.DomEvent.stop);
L.DomEvent.on(link, 'click', L.DomEvent.stop)
.on(link, 'click', function () {
window.LAYER = this.options.callback.call();