Hi,

two things:

* your sld does not have a UserStyle named Normal or Highlite. This is 
definitely wrong.

* How did you load the sld file into your config? Do you have a 
StyledLayerDescriptor model with your sld file as defaultModelUrl?

Regards,
Andreas.

Blue wrote:
> Hi!
>
> I have tried this but I don't know that is happened:
>
> My GmlRendererOL in my config file is:
>
> <FeatureCollection id="featureCollection">
>
>       <method>post</method>
>       <widgets>
>         <TipWidgetOL id="featurePopup">            
>           <width>200</width>
>           <height>150</height>
>
>           <opacity>0.8</opacity>
>           <backgroundColor>#D0D0D0</backgroundColor>
>           <border>1px solid black</border>
>         </TipWidgetOL>
>         <GmlRendererOL id="gmlRenderer">
>
>           <targetModel>mainMap</targetModel>
>           <sldModel>sld</sldModel>
>           <defaultStyleName>Normal</defaultStyleName>
>           <selectStyleName>Highlite</selectStyleName>
>
>           <featureOnClick>featurePopup</featureOnClick>
>         </GmlRendererOL>
>         <FeatureList id="featureList"></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:topp='http://www.openplans.org/topp'</namespace>
>
>     </FeatureCollection>
>
> My sld file defined in my geoserver is:
>
> <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
> <sld:StyledLayerDescriptor version="1.0.0" 
> xmlns:sld="http://www.opengis.net/sld"; 
> xmlns:ogc="http://www.opengis.net/ogc"; 
> xmlns:xlink="http://www.w3.org/1999/xlink";>
>   <sld:NamedLayer>
>     <sld:Name>gmlRenderer</sld:Name>
>     <sld:UserStyle>
>       <sld:Name>default</sld:Name>
>       <sld:FeatureTypeStyle>       
>         <sld:Rule>  
>           <sld:MinScaleDenominator>30000</sld:MinScaleDenominator>
>           <sld:MaxScaleDenominator>3000000</sld:MaxScaleDenominator>
>         <sld:PointSymbolizer>
>             <sld:Graphic>
>               <sld:ExternalGraphic>
>                   <sld:OnlineResource 
> xmlns:xlink="http://www.w3.org/1999/xlink";
>                     xlink:type="simple"
>                   xlink:href="hiss.gif"/>
>                 <sld:Format>image/gif</sld:Format>
>               </sld:ExternalGraphic>
>               <sld:Size>12</sld:Size>
>               <sld:Rotation>0</sld:Rotation>
>             </sld:Graphic>
>           </sld:PointSymbolizer>
>         </sld:Rule>
>       </sld:FeatureTypeStyle>
>     </sld:UserStyle>
>   </sld:NamedLayer>
> </sld:StyledLayerDescriptor>
>
> The error is the same.
>
> 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)
> [Break on this error] var namedLayer = 
> sldModel.sld.namedLayers[objRef.id].userStyles;
>
> Thank very much.
>
> 2008/5/6 Andreas Hocevar <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
>
>     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]
>         <mailto:[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
>   


-------------------------------------------------------------------------
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