[fusion-commits] r2542 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Jun 28 13:07:39 PDT 2012
Author: madair
Date: 2012-06-28 13:07:38 -0700 (Thu, 28 Jun 2012)
New Revision: 2542
Modified:
trunk/widgets/MapMenu.js
Log:
get menu label from sMapResource for published maps
Modified: trunk/widgets/MapMenu.js
===================================================================
--- trunk/widgets/MapMenu.js 2012-06-27 14:19:16 UTC (rev 2541)
+++ trunk/widgets/MapMenu.js 2012-06-28 20:07:38 UTC (rev 2542)
@@ -145,6 +145,10 @@
for (var i=0; i<list.length; i++) {
var resource = list[i];
var mapId = resource.sResourceId;
+ //kludge to get readable map name for pubilshed maps from mapReousrce value
+ if (resource.sMapResource) {
+ mapId = resource.sMapResource;
+ }
mapId = mapId.replace(this.rootFolder, '');
var folders = mapId.split('/');
var label = folders.pop();
More information about the fusion-commits
mailing list