]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.extend.js.erb
Upgrade passwords to the latest hashing scheme on login
[rails.git] / app / assets / javascripts / leaflet.extend.js.erb
index 8aa9c70ec88de82e40e6d3673d31b14bbfc58290..0df6fd381280eedbe7ac10ed2045938d22fe6c12 100644 (file)
@@ -146,6 +146,12 @@ L.extend(L.Map.prototype, {
         map._objectLayer.addTo(map);
       }
     });
+  },
+
+  removeObject: function() {
+    this._object = null;
+    if (this._objectLoader) this._objectLoader.abort();
+    if (this._objectLayer) this.removeLayer(this._objectLayer);
   }
 });