diff --git a/lib/Map/Legend.js b/lib/Map/Legend.js
index <HASH>..<HASH> 100644
--- a/lib/Map/Legend.js
+++ b/lib/Map/Legend.js
@@ -339,7 +339,7 @@ Legend.prototype.drawSvg = function() {
 };
 
 Legend.prototype.asSvgUrl = function(canvas) {
-    return "data:image/svg+xml;base64," + window.btoa(this.drawSvg());
+    return "data:image/svg+xml," + this.drawSvg();
 };
 
 module.exports = Legend;
Remove Base<I>-encoding from SVG URLs.