check in the demos you'll find you need to add a GetFeaureInfo.js in the
widget config IIRC and for customising the output you might want to
specify.  
 
here's a sample:
 
  <Model id="featureInfoResponse" template="true">
            <widgets>
                <FeatureInfo id="features">
                    <!-- <debug>1</debug> -->
                    <htmlTagId>featureInfo</htmlTagId>
                    <stylesheet>FeatureInfo.xsl</stylesheet>
                </FeatureInfo>
            </widgets>
        </Model>
 </models>
 
  
  <GetFeatureInfo id="getFeatureInfo">
            <buttonBar>mainButtonBar</buttonBar>
            <targetModel>featureInfoResponse</targetModel>
            <mouseHandler>mainMouseClick</mouseHandler>
            <class>RadioButton</class>
            <enabledSrc>/images/QueryEnable.png</enabledSrc>
            <disabledSrc>/images/QueryDisable.png</disabledSrc>
            <context>mainMap</context>
        <!-- check this path!!!! -->
            <scriptFile>mapbuilder/lib/GetFeatureInfo.js</scriptFile>
              <!--<debug>true</debug>-->
     </GetFeatureInfo>
 </widgets>
 
<proxy>/mapbuilder/Mapbuilderproxy.jsp</proxy>
 
also, notice that there are some commented out debug statements.  If you
try enabling those it might help just to check you're getting output.
Also notice I've added a proxy. you might need this too.  Because it's a
jsp page it means hosting mapbuilder in tomcat (there is a PHP version
too).  Email me back next week if you need more help.  You also need to
put the right <div> ...</div> placeholders in your webpage for the
output.
 
hope this helps

 
Darren Graham
Information Analyst
EDS
1-3 Bartley Way
Bartley Way Industrial Park
Hook, RG279XA
UK
 
Phone: +44 01256 74 2579
 
+ mailto: [EMAIL PROTECTED]
 

This email contains information which is confidential and may be
privileged. Unless you are the intended addressee (or authorised to
receive for the addressee) you may not use, forward, copy or disclose to
anyone this email or any information contained in this email. If you
have received this email in error, please advise the sender by reply
email immediately and delete this email.
 
EDS Defence Ltd
Registered Office: 4 Roundwood Avenue, Stockley Park, Uxbridge,
Middlesex, UB11 1BQ. 
Registered in England no: 936751
VAT number: 432 99 5915


        -----Original Message-----
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of L R
        Sent: 27 July 2007 16:32
        To: [email protected]
        Subject: [Mapbuilder-users] GetFeatureInfo is not working
        
        
        Hello!!!
        
        I'm starting with MapBuilder 1.0.1.
        I'm having some problems with GetFeatureInfo: when I click on
the map nothing happend. 
        The layer that I'm querying is queryable and I can't figure out
what am I doing wrong. 
        Thanks.
        
        The config.xml file:
        <model>....
        <Model id="featureInfoResponse" template="true">
                  <namespace>xmlns:gml=' http://www.opengis.net/gml'
xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='
http://www.openplans.org/topp' <http://www.openplans.org/topp'>
</namespace>
                  <widgets>
                    <FeatureInfo id="features">
                      <htmlTagId>featureInfo</htmlTagId>
                    </FeatureInfo> 
                  </widgets>
                </Model>
        
        <widgets>
        <GetFeatureInfo id="getFeatureInfo">
                    <buttonBar>mainButtonBar</buttonBar>
                    <targetModel>featureInfoResponse</targetModel> 
                    <mouseHandler>mainAoi</mouseHandler>
                    <class>RadioButton</class>
                    <enabledSrc>/images/QueryEnable.png</enabledSrc>
                    <disabledSrc>/images/QueryDisable.png</disabledSrc> 
                    <context>mainMap</context>
                </GetFeatureInfo>
        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to