From 914946897190b0cd1fbbd8da9dc203c0d1fe470f Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 4 Jul 2006 15:49:05 +0000 Subject: [PATCH] store a reference to the options. this will be used for cloning. git-svn-id: http://svn.openlayers.org/trunk/openlayers@878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index fd81c7d29e..bd0ba61662 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -22,6 +22,9 @@ OpenLayers.Layer.prototype = { // OPTIONS + /** @type Array */ + options: null, + /** @type String */ projection: null, @@ -47,6 +50,9 @@ OpenLayers.Layer.prototype = { initialize: function(name, options) { if (arguments.length > 0) { + //store a copy of the custom options for later cloning + this.options = options; + //add options to layer Object.extend(this, options);