Merge pull request #157 from mpriour/patch-1
Create the layer's metadata object in the initialize function. r=me
This commit is contained in:
@@ -329,7 +329,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* {Object} This object can be used to store additional information on a
|
* {Object} This object can be used to store additional information on a
|
||||||
* layer object.
|
* layer object.
|
||||||
*/
|
*/
|
||||||
metadata: {},
|
metadata: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: OpenLayers.Layer
|
* Constructor: OpenLayers.Layer
|
||||||
@@ -340,6 +340,8 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
initialize: function(name, options) {
|
initialize: function(name, options) {
|
||||||
|
|
||||||
|
this.metadata = {};
|
||||||
|
|
||||||
this.addOptions(options);
|
this.addOptions(options);
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|||||||
Reference in New Issue
Block a user