I changed it as you described in those examples and now it works fine. Thank you!
Kenneth Skovhede, GEOGRAF A/S wrote: > > 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.. >> > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Change-layer-label-doesn%27t-work-tp2371846p2372380.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
