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:
crschmidt
2008-02-09 19:18:02 +00:00
parent 7b87a414a3
commit b4bf9ea9bc
+2 -2
View File
@@ -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;
}, },