If you look at the second link (to the documentation),
the method "SetLayerDefinition" can make the layer point to another resource.

As with the first example, you need to make a copy of the LayerDefinition xml.
If you just modify the LayerDefinition xml without making a copy, the change
will be visible for all users, current and future.

Basic steps are:
1) Obtain the MgMap instance
2) Find the layer
3) Load the LayerDefinition xml (link 1)
4) Modify the FeatureLabel (link 1)
5) Save a copy of the LayerDefinition xml (link 1)
6) Make the layer from step 2 point to the copy of the LayerDefinition from step 5 (link 2)
7) Save the MgMap instance from step 1
8) Refresh the map on the client (developer guide)

steps 1,2 and 7 have hints in the developer guide, but are
also avalible in the API documentation under MgMap.

Regards, Kenneth Skovhede, GEOGRAF A/S

On 19-02-2010 10:41, SriRam007 wrote:
ave given are for a new layer which is working fine and
I got some help from Buffer.aspx page.

But

I want to change feature label for an existing layer.
The layer is having 3 fields like (Id,Name,Adress)
Currently its showing Id in the map. But i want to change it to name

Is there any way to do so...
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to