<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hmm, I see... For some reason this property is not avalible in the API.<br>
<br>
You can remove it from the layers collection (code in C#):<br>
<tt>MgMap map = ......;<br>
MgMapLayerCollection col = map.GetLayers();<br>
MgMapLayer layer= (MgMapLayer)col[0];<br>
col.RemoveAt(0);<br>
col.Insert(col.Count - 1, layer)<br>
map.Save(...);</tt><br>
<br>
That will move the first layer down to the last position.<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
m.karam skrev:
<blockquote cite="mid:13486671.post@talk.nabble.com" type="cite">
<pre wrap="">the layers don't have a "DisplayOrder" property...
Kenneth, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>