Pass WMC options through to versioned methods.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -85,7 +85,7 @@ OpenLayers.Format.WMC = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
this.parser = new format(this.options);
|
this.parser = new format(this.options);
|
||||||
}
|
}
|
||||||
var context = this.parser.read(data);
|
var context = this.parser.read(data, options);
|
||||||
var map;
|
var map;
|
||||||
if(options.map instanceof OpenLayers.Map) {
|
if(options.map instanceof OpenLayers.Map) {
|
||||||
map = this.mergeContextToMap(context, options.map);
|
map = this.mergeContextToMap(context, options.map);
|
||||||
@@ -163,7 +163,7 @@ OpenLayers.Format.WMC = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
this.parser = new format(this.options);
|
this.parser = new format(this.options);
|
||||||
}
|
}
|
||||||
var wmc = this.parser.write(obj);
|
var wmc = this.parser.write(obj, options);
|
||||||
return wmc;
|
return wmc;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -190,4 +190,4 @@ OpenLayers.Format.WMC = OpenLayers.Class({
|
|||||||
|
|
||||||
CLASS_NAME: "OpenLayers.Format.WMC"
|
CLASS_NAME: "OpenLayers.Format.WMC"
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user