Hello List,
i have a problem using the EditPoint Widget. If the mapbuilder trys to
parse the template-XML i get the this alert-message: "Document
parseError: {0}".
There is no other error-message. Not in Firebug or sth. else.
Im using the Mapbuilder 1.5 RC2 on a windows xp prof system.
Here is the used template-file:
<?xml version="1.0" encoding="UTF-8"?>
<gml:FeatureCollection
xmlns:hl="www.hansaluftbild.de/OpenWebMap/redlining"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<gml:featureMember>
<hl:RedliningEntry>
<hl:geometry>
<gml:Point>
<gml:coordinates decimal="." cs=","
ts=" "></gml:coordinates>
</gml:Point>
</hl:geometry>
<hl:title editable="true" visible="true" />
<hl:memo editable="true" visible="true"
type="textarea"/>
<hl:state editable="true" visible="true" />
<hl:category editable="true" visible="true"/>
<hl:createdon editable="false" visible="false"/>
<hl:createdby editable="true" visible="true"/>
<hl:editedon editable="false" visible="false"/>
<hl:editedby editable="true" visible="true"/>
<hl:persistent editable="false"
visible="false">false</hl:persistent>
</hl:RedliningEntry>
</gml:featureMember>
</gml:FeatureCollection>
and here are the corresponding config.xml entries
(featureCollection*(1)*, Widget*(2)*:
*(1)*
<FeatureCollection id="Redlining_Point_FeatureCollection">
<widgets>
<GmlRendererOL id="testGmlRenderer">
<targetModel>mainMap</targetModel>
<sldModel>sld</sldModel>
</GmlRendererOL>
<FeatureList id="featureList">
<stylesheet>./stylesheets/redliningFeatureList.xsl</stylesheet>
<htmlTagId>redliningEditListContent</htmlTagId>
</FeatureList>
</widgets>
<tools>
<FeatureSelectHandler id="featureHighlighter">
<targetModel>mainMap</targetModel>
</FeatureSelectHandler>
</tools>
<namespace>xmlns:gml='http://www.opengis.net/gml'
xmlns:wfs='http://www.opengis.net/wfs'
xmlns:hl='www.hansaluftbild.de/OpenWebMap/redlining'</namespace>
<featureTagName>hlr:title</featureTagName>
<coordSelectXpath>/gml:FeatureCollection/gml:featureMember/hl:RedliningEntry/hl:geometry/gml:Point/gml:coordinates</coordSelectXpath>
</FeatureCollection>
*(2)*
<EditPoint id="editPoint">
<buttonBar>buttonbar</buttonBar>
<targetModel>Redlining_Point_FeatureCollection</targetModel>
<targetContext>mainMap</targetContext>
<class>RadioButton</class>
<enabledSrc>/images/EditPointEnable.png</enabledSrc>
<disabledSrc>/images/EditPointDisable.png</disabledSrc>
<featureXpath>/gml:FeatureCollection/gml:featureMember/hl:RedliningEntry/hl:geometry/gml:Point/gml:coordinates</featureXpath>
<defaultModelUrl>./data/redlining_Point.xml</defaultModelUrl>
<appendOnEdit>false</appendOnEdit>
</EditPoint>
I hope someone can help me. If you need additional information i´ll try
my best.
thank you.
Thorsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users