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:
@@ -22,6 +22,9 @@ OpenLayers.Layer.prototype = {
|
|||||||
|
|
||||||
// OPTIONS
|
// OPTIONS
|
||||||
|
|
||||||
|
/** @type Array */
|
||||||
|
options: null,
|
||||||
|
|
||||||
/** @type String */
|
/** @type String */
|
||||||
projection: null,
|
projection: null,
|
||||||
|
|
||||||
@@ -47,6 +50,9 @@ OpenLayers.Layer.prototype = {
|
|||||||
initialize: function(name, options) {
|
initialize: function(name, options) {
|
||||||
if (arguments.length > 0) {
|
if (arguments.length > 0) {
|
||||||
|
|
||||||
|
//store a copy of the custom options for later cloning
|
||||||
|
this.options = options;
|
||||||
|
|
||||||
//add options to layer
|
//add options to layer
|
||||||
Object.extend(this, options);
|
Object.extend(this, options);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user