Hmm, I see... For some reason this property is not avalible in the API.

You can remove it from the layers collection (code in C#):
MgMap map = ......;
MgMapLayerCollection col = map.GetLayers();
MgMapLayer layer= (MgMapLayer)col[0];
col.RemoveAt(0);
col.Insert(col.Count - 1, layer)
map.Save(...);

That will move the first layer down to the last position.



Regards, Kenneth, GEOGRAF A/S



m.karam skrev:
the layers don't have a "DisplayOrder" property...



Kenneth, GEOGRAF A/S wrote:
I belive that the layers have a "DisplayOrder" property.
So do:

1. Load runtime map
2. Change "DisplayOrder" property of layers
3. Save runtime map
4. Refresh client display

Regards, Kenneth, GEOGRAF A/S



m.karam skrev:
Hi everybody

I want to change the (Drawing Order) of the Map Layers at run-time
according
to a specific conditions
How can i do it?

Thanks in advance
Karam
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to