[mapguide-users] Change layer label doesn't work

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Feb 23 08:26:06 EST 2009


That is a known bug with the AJAX viewer:
http://trac.osgeo.org/mapguide/ticket/167

Regards, Kenneth Skovhede, GEOGRAF A/S



Peter Filip skrev:
> I'm trying to change a label but without any success..
>
> MgLayerCollection vrstvy = map.GetLayers();
> vrstva1 = (MgLayer)vrstvy.GetItem(1);
>
> vrstva1.LegendLabel = cinnost;
>
> vrstva1.SetVisible(true);
> vrstva1.ForceRefresh();
>
> map.Save(resourceService);
>
>
> and then i refresh the map,and the label is the same as before..
>   


More information about the mapguide-users mailing list