|
From: <phi...@bo...> - 2005-12-15 19:16:48
|
Hi Cameron Thenks for the reply. My problem is not with the editing tools in general. I can use EditLi= ne=20 and EditPoint and everything is fine. My problem is only with=20 EditPolygon. The points and lines are not drawn on the map. I'm using the wfs-t demo configuration so I have the GMRenderer widge= t,=20 but the demo doesn't implement the EditPolygon tool. I assumed that t= he=20 parameters were all the same and only modified my template and the= =20 featureXpath. Any idea about a problem like this? Philippe Cameron Shorter wrote: > Some ideas: > > Have you been reading this WFS tutorial? > http://docs.codehaus.org/display/MAP/WFS+Tutorial > > In your config file, do you have a GMLRenderer widget? > Do you have any JS errors? > I've noticed a bug in IE where features are not rendering from=20 > GMLRenderer if the basemap is in PNG format. Changing to GIF shoul= d=20 > fix the problem. > > Philippe Gr=E9goire wrote: > >> Hi everyone >> >> I have a problem with the EditPolygon tool. When I put a polygon i= n=20 >> my featureXpath, the tool doesn't work. The coordinates of the poi= nts=20 >> I click appear alright but the polygon is not drawn on screen. Her= e=20 >> is a part of my XML config file. >> >> <EditPolygon id=3D"EditPolygon"> >> <buttonBar>mainButtonBar</buttonBar> >> <mouseHandler>mainMouseClick</mouseHandler> >> <class>RadioButton</class> >> <enabledSrc>/images/EditPolygonEnable.png</enabledSrc> >> <disabledSrc>/images/EditPolygonDisable.png</disabledSrc> >> <targetModel>featureCollection</targetModel> >> <transactionResponseModel>transaction</transactionResponseMod= el> >> =20 >> <featureXpath>/gml:featureMember/topp:lottest2/topp:the_geom/gml:M= ultiPolygon/gml:polygonMember/gml:Polygon/gml:coordinates</featureXpa= th>=20 >> >> <defaultModelUrl>template_lottest.xml</defaultModelUrl> >> <targetContext>mainMap</targetContext> >> </EditPolygon> >> >> And here is the template_lottest.xml file: >> >> <?xml version=3D"1.0" encoding=3D"UTF-8"?> >> <gml:featureMember xmlns:topp=3D"http://www.openplans.org/topp"= =20 >> xmlns:gml=3D"http://www.opengis.net/gml"> >> <topp:lottest2> >> <topp:the_geom> >> <gml:MultiPolygon srsName=3D"epsg:4326"> >> <gml:polygonMember> >> <gml:Polygon> >> <gml:coordinates decimal=3D"." cs=3D"," ts=3D" "></gml:= coordinates> >> </gml:Polygon> >> </gml:polygonMember> >> </gml:MultiPolygon> >> </topp:the_geom> </topp:lottest2> >> </gml:featureMember> >> >> Is there something wrong with these files, or is it a MapBuilder i= ssue? >> >> Thanks >> >> Philippe >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through= =20 >> log files >> for problems? Stop! Download the new AJAX search engine that mak= es >> searching your log files as easy as surfing the web. DOWNLOAD SP= LUNK! >> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick >> _______________________________________________ >> Mapbuilder-users mailing list >> Map...@li... >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users >> > > > |