Thanks, but it doesn't work.
I've move to 1.5.1alpha. I guess I'm missing something or I'm doing
something wrong
config.xml
<WebServiceRequest id="featureInfoController">
<targetModel>featureInfoResponse</targetModel>
<requestName>wms:GetFeatureInfo</requestName>
<infoFormat>text/html</infoFormat>
<infoFormat>application/vnd.ogc.gml</infoFormat>
<featureCount>1</featureCount>
</WebServiceRequest>
</tools>
</Context>
<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'
</namespace>
<widgets>
<FeatureInfo id="features">
<htmlTagId>featureInfo</htmlTagId>
<!-- <outputNodeId>featureInfoCanvas</outputNodeId> -->
<stylesheet>../../lib/widget/FeatureInfo.xsl</stylesheet>
</FeatureInfo>
</widgets>
</Model>
</models>
<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>
<scriptFile>../../lib/widget/GetFeatureInfo.js</scriptFile>
</GetFeatureInfo>
index.html
<table border="0" cellpadding="0" cellspacing="0" width="100%"
id="AutoNumber1">
<tr>
<td width="5%" valign="top" height="34%">
</td>
<td id="mainButtonBar" width="33%" align="left"
valign="top"></td>
<td id="cursorTrack" width="33%" align="right"></td>
<td width="34%" rowspan="3" id="featureInfo"></td>
</tr>
Thank you very much.
Leandro
2007/7/29, Graham, Darren F <[EMAIL PROTECTED]>:
>
> just checked my 1.0.1 and it's not there. Try downloading the
> 1.5alphainstead.
>
> Darren
>
> -----Original Message-----
> *From:* L R [mailto:[EMAIL PROTECTED]
> *Sent:* 27 July 2007 20:16
> *To:* Graham, Darren F
> *Cc:* [email protected]
> *Subject:* Re: [Mapbuilder-users] GetFeatureInfo is not working
>
> Thanks....
> I've tried what you told but I don't get it.
> I don't have this file: mapbuilder/Mapbuilderproxy.jsp. Is because of my
> version?? 1.0.1
>
> When I put this mouse handler nothing happend:
> <mouseHandler>mainMouseClick</mouseHandler>
>
> There is a file called: wms_GetFeatureInfo.xsl. Can I use it?
>
> In the web page I use this tag to reference it:
> <htmlTagId>featureInfo</htmlTagId>
>
> You can see I have a lot of doubts.
> Thanks
>
>
>
>
> 2007/7/27, Graham, Darren F < [EMAIL PROTECTED]>:
> >
> > 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%27>
> > </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