Hi,

your SLD file needs to have a <NamedLayer> with the same name as the id 
of your GmlRendererOL. Something like:

config:
...
<GmlRendererOL id="gmlRenderer">
...

sld:
...
<NamedLayer>
    <Name>gmlRenderer</Name>
...


Regards,
Andreas.

Blue wrote:
> Hi!!
>
> I have the same problem with wfs query in the rc2. When I select a 
> point, the information in xml is returned in the console but the popup 
> with de information is not in the map. The firebug error is:
>
>
> sldModel.sld.namedLayers[objRef.id] has no properties
> paint(Object model=Object widgetNode=gmlrendererol)GmlRendererOL.js 
> (line 226)
> callListeners("refresh", undefined)Listener.js (line 101)
> setParam("refresh", undefined)Listener.js (line 120)
> refresh(Object listeners=[0] values=[0] async=true)ModelBase.js (line 428)
> callListeners("loadModel", undefined)Listener.js (line 101)
> finishLoading()ModelBase.js (line 288)
> onreadystatechange()ModelBase.js (line 215)
>  var namedLayer = sldModel.sld.namedLayers[objRef.id].userStyles;
>
> I have defined in my config:
>
>     <WfsGetFeature id="wfsGetFeature">
>       <buttonBar>mainButtonBar</buttonBar>
>       <targetModel>mainMap</targetModel>
>       <class>RadioButton</class>
>       <enabledSrc>/images/QueryEnable.png</enabledSrc>
>       <disabledSrc>/images/QueryDisable.png</disabledSrc>
>       
> <transactionResponseModel>featureCollection</transactionResponseModel>
>       <webServiceUrl>http://192.168.5.2.es/geos/wfs</webServiceUrl>
>       <typeName>topp:castw</typeName>
>       <tolerance>5</tolerance>
>       <maxFeatures>1</maxFeatures>
>       <webServiceSrs>EPSG:23030</webServiceSrs>
>     </WfsGetFeature>
>
> I don't understand the answer to before mail about this question.
>
> Thank very much for all.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to