diff --git a/lib/OpenLayers/Format/WMC/v1_0_0.js b/lib/OpenLayers/Format/WMC/v1_0_0.js index 6fd9c024bf..9968e6351f 100644 --- a/lib/OpenLayers/Format/WMC/v1_0_0.js +++ b/lib/OpenLayers/Format/WMC/v1_0_0.js @@ -92,7 +92,7 @@ OpenLayers.Format.WMC.v1_0_0 = OpenLayers.Class( // optional DimensionList element if (context.dimensions) { - node.appendChild(this.write_wmc_DimensionList(layer)); + node.appendChild(this.write_wmc_DimensionList(context)); } // OpenLayers specific properties go in an Extension element