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
This commit is contained in:
euzuro
2006-07-04 15:49:05 +00:00
parent 718d84d6d2
commit 9149468971

View File

@@ -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);