From b4bf9ea9bc1f7dc1484f74e7a30abee0a17815f6 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 9 Feb 2008 19:18:02 +0000 Subject: [PATCH] Pass WMC options through to versioned methods. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WMC.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Format/WMC.js b/lib/OpenLayers/Format/WMC.js index 4ce056f869..2bdafb652c 100644 --- a/lib/OpenLayers/Format/WMC.js +++ b/lib/OpenLayers/Format/WMC.js @@ -85,7 +85,7 @@ OpenLayers.Format.WMC = OpenLayers.Class({ } this.parser = new format(this.options); } - var context = this.parser.read(data); + var context = this.parser.read(data, options); var map; if(options.map instanceof OpenLayers.Map) { map = this.mergeContextToMap(context, options.map); @@ -163,7 +163,7 @@ OpenLayers.Format.WMC = OpenLayers.Class({ } this.parser = new format(this.options); } - var wmc = this.parser.write(obj); + var wmc = this.parser.write(obj, options); return wmc; }, @@ -190,4 +190,4 @@ OpenLayers.Format.WMC = OpenLayers.Class({ CLASS_NAME: "OpenLayers.Format.WMC" -}); \ No newline at end of file +});