<!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">
The FeatureSource looks ok.<br>
<br>
You need to look at how it is all built up:<br>
<br>
1 x WebLayout -> 1 x MapDefintion -> 1+ x LayerDefinition ->
FeatureSource (one pr. layer)<br>
<br>
So, your LayerDefinition references the FeatureSource, which is
allright.<br>
The MapDefinition references the maps, but does not replicate the
content of the LayerDefinition.<br>
<br>
To look at the Xml, I reccomend that you try out Maestro:<br>
<a href="http://trac.osgeo.org/mapguide/wiki/maestro">http://trac.osgeo.org/mapguide/wiki/maestro</a><br>
<br>
Within Maestro, you can click the "Edit Xml" button, and see how a
working MapDefinition looks.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
gingerbbm skrev:
<blockquote cite="mid:19308999.post@talk.nabble.com" type="cite">
<pre wrap="">Kenneth, thankyou for your continued help (and patience)!
The key point I was missing is:
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">2. Insert the polygon layer into the Xml
</pre>
</blockquote>
<pre wrap=""><!---->
I guess I can do a GetResourceContent() on my polygon layer and insert its
XML into my Map Definition XML. But the polygon layer's XML references a
feature source defined as:
<FeatureSource xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd" version="1.0.0">
<Provider>OSGeo.SDF</Provider>
<Parameter>
<Name>File</Name>
<Value>%MG_DATA_FILE_PATH%RedlineLayer.sdf</Value>
</Parameter>
<Parameter>
<Name>ReadOnly</Name>
<Value>FALSE</Value>
</Parameter>
</FeatureSource>
1. Does this look right?
2. Do I need to insert this XML anywhere?
Thanks
Stuart
</pre>
</blockquote>
</body>
</html>