[mapguide-users] How to Get LayerPropertiesNames from Client Side using javascript

veer-singh veer-singh at hcl.com
Thu Aug 16 04:41:25 PDT 2012


Hi ,
I want to access all LayerpropertiesNames from mapWidget ,
i have writtin below code to access'

          var mgApiMapWidgetId = 'Map';
          var MainFusionWindow = GetFusionWindow();
          var Fusion = MainFusionWindow.Fusion;
          var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
         var CurrentMap = mapWidget.oMapOL;
         var layer = CurrentMap.mapWidget.oMapOL.getLayersByName(LayerName);
       var propNames = layer.attribute;// here i'm getting undefined

Please suggest me proper solution for it.



-----
VEER HCLTECH,INDIA
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-Get-LayerPropertiesNames-from-Client-Side-using-javascript-tp4995618.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list