give google layer a destroy() function

git-svn-id: http://svn.openlayers.org/trunk/openlayers@917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-07 16:05:14 +00:00
parent b84b3763a6
commit 5769205acb

View File

@@ -68,6 +68,14 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
}
},
/**
*
*/
destroy: function() {
this.gmap = null;
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
},
/**
* @param {OpenLayers.Map} map
*/