diff --git a/lib/Models/Leaflet.js b/lib/Models/Leaflet.js
index <HASH>..<HASH> 100644
--- a/lib/Models/Leaflet.js
+++ b/lib/Models/Leaflet.js
@@ -226,7 +226,7 @@ Leaflet.prototype.captureScreenshot = function() {
     var deferred = when.defer();
 
     // Temporarily hide the map credits.
-    this.map.attributionControl.removeFrom(this.map);
+    this.map.attributionControl.remove();
 
     var that = this;
Modify code that uses a Leafelt 1 renamed function