From 5769205acbf530f07c874b45cd1a2301ba11532d Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 7 Jul 2006 16:05:14 +0000 Subject: [PATCH] give google layer a destroy() function git-svn-id: http://svn.openlayers.org/trunk/openlayers@917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index f2f4ef0f06..a491086c1a 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -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 */