Hi all,
Currently, we have in LayerRecord.js :
GeoExt.data.LayerRecord = Ext.data.Record.create([
{name: "layer"},
{name: "title", type: "string", mapping: "name"}
]);
The mapping can be annoying, for instance when restoring a WMC context :
layerStore.add(wmcReader.readRecords(wmcFormat.read(wmcString, {})).records);
In the above case, layerRecords end up with their title set to the
layer names instead of their correct titles.
A quick workaround is to set values["title"] to layerContext["title"]
in WMSReader.js, L102
Would you see other options ? (as I don't think that removing the
above mapping would be a valid one)
Thanks,
F.
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev