[fusion-commits] r2133 - sandbox/jxlib-3.0/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Apr 6 10:04:06 EDT 2010
Author: madair
Date: 2010-04-06 10:04:05 -0400 (Tue, 06 Apr 2010)
New Revision: 2133
Modified:
sandbox/jxlib-3.0/widgets/MapMenu.js
Log:
carry through AppDef map and layer metadata keys when populating the map menu from the platform
Modified: sandbox/jxlib-3.0/widgets/MapMenu.js
===================================================================
--- sandbox/jxlib-3.0/widgets/MapMenu.js 2010-04-06 02:00:29 UTC (rev 2132)
+++ sandbox/jxlib-3.0/widgets/MapMenu.js 2010-04-06 14:04:05 UTC (rev 2133)
@@ -106,6 +106,7 @@
this.menus = {};
var list = o.values;
if (o.values) {
+ var basemap = this.getMap().aMaps[0];
for (var i=0; i<list.length; i++) {
var resource = list[i];
var mapId = resource.sResourceId;
@@ -121,7 +122,11 @@
data = {maps:[{'resourceId': resource.sMapResource,
'singleTile':true,
'type': this.arch,
- 'extension':{'MapFile': [resource.sPath]}
+ 'extension':{
+ 'MapFile': [resource.sPath],
+ 'MapMetadata': [basemap.mapMetadataKeys],
+ 'LayerMetadata': [basemap.layerMetadataKeys]
+ }
}]};
//set up needed accessor
data.getInitialView = function() {
More information about the fusion-commits
mailing list