[mapguide-users] Bypassing initial view at startup - and adding a layer

gingerbbm stuart.jones at jacobs.com
Thu Sep 4 09:10:06 EDT 2008


Kenneth, thankyou for your continued help (and patience)!

The key point I was missing is:

Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> 2. Insert the polygon layer into the Xml
> 

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="http://www.w3.org/2001/XMLSchema-instance"
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
-- 
View this message in context: http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19308999.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list