<!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">
So you have the resourceId, but need the layerdefinition xml?<br>
Look at <a class="moz-txt-link-freetext" href="http://localhost/mapguide/mapagent/index.html">http://localhost/mapguide/mapagent/index.html</a><br>
Click "Resource", then "GetResourceContent".<br>
Fill in the field "Resource ID" and click submit.<br>
You can read the URL of the resulting page:<br>
<a class="moz-txt-link-freetext" href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library%3A%2F%2FTest%2FSources%2FWorld.FeatureSource&FORMAT=text%2Fxml">http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library%3A%2F%2FTest%2FSources%2FWorld.FeatureSource&FORMAT=text%2Fxml</a><br>
<br>
If you have a sessionID, you can append it as a parameter like:<br>
&SESSION=...sessionid...<br>
That will prevent it from asking about a username/password.<br>
Alternatively add "&USERNAME=Anonymous&PASSWORD="<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:alucas@srtec.com">alucas@srtec.com</a> skrev:
<blockquote
cite="mid:20363526.79941210017321237.JavaMail.nabble@isper.nabble.com"
type="cite">
<pre wrap="">Hi kenneth,
I need the layer definition for a layer.
Kenneth, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">What do you have to query with?
The map definition?
The runtime map?
The layer guid?
The layer name?
The layer xml?
Regards, Kenneth, GEOGRAF A/S
alucas skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I know this is a strange question, but it's possible to get the resource
id
from a layer through mapagent? I need to get this information without
using
the server API if it is possible.
For example: For the parcel's layer, I need to get
Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition
Thanks in advance
</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=""><!---->Quoted from:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/getting-layerdefinition-tp17067340p17069516.html">http://www.nabble.com/getting-layerdefinition-tp17067340p17069516.html</a>
</pre>
</blockquote>
</body>
</html>