Sounds like a library is missing or not being loaded correctly. have you
checked that path to the .js file. Have you tried IE7 instead of FF? IF only
IE7 had the error console like FF!!!! I've heard of people having trouble with
newer versions of geoserver. I use 1.5.0-RC3 without any probs (so far). I'd
try that version if you can find it. BTW I have mapbuilder + geoserver
running via apache tomcat - both mapbuilder and geoservers are .war files I
drop into c:\tomcat\webapps. tomcat takes care of the rest.
The config looks ok, can you try a different queryable layer maybe topp:states?
or try a different demo perhaps??
HTH
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: L R [mailto:[EMAIL PROTECTED]
Sent: 01 August 2007 22:27
To: Graham, Darren F
Cc: [email protected]
Subject: Re: [Mapbuilder-users] GetFeatureInfo is not working
Hello...
According Firefox Error Console:
Error: objRef.targetModel.getQueryableLayers is not a function
Archivo de origen:
file:///C:/Archivos%20de%20programa/GeoServer%201.5.1-RC1/webapps/mapbuilder/demo/visor/GetFeatureInfo.js
LĂnea: 35
var queryList = objRef.targetModel.getQueryableLayers();
I'm using GetFeatureInfo.js from MapViewer demo.
Do I have something wrong on wmc.xml?
Here is the only layer:
<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.1.1" title="OGC:WMS">
<OnlineResource xlink:type="simple" xlink:href="
http://localhost:8080/geoserver/wms <http://localhost:8080/geoserver/wms> "/>
</Server>
<Name>topp:DepartamentosIGM</Name>
<Title>DepartamentosIGM_Type</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-73.56607818611337"
miny="-55.05776489245204" maxx="-53.635586152008614" maxy="-21.7781906936342"/>
<BoundingBox SRS="EPSG:4326" minx="- 73.56607818611337"
miny="-55.05776489245204" maxx="-53.635586152008614" maxy="-21.7781906936342"/>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<Style>
<Name>simple_roads</Name>
<Title>Default Styler for simple road segments</Title>
</Style>
</Layer>
Does exist any demo with GetFeatureInfo working correctly?
Thank you very much.
2007/8/1, Graham, Darren F < [EMAIL PROTECTED]>:
right, first you need to check that you're getting XML from the
getFeatureInfo call. Have you tried enabling the debug? See below where I've
added the tags in your config. This should tell you if you've a) got a
functioning getFeatureInfo call and b) that you're getting something sensible
back. Don't forget you need a "queryable" layer in your worldmap.xml file (or
whatever file you're storing your layers in)
You might need to create your own XSL file to handle the XML
coming back. The default one might not recognise the fields.
one way to test this is to try and get XMLspy you can load the
XML from the getfeaturinfo call and attach an XSL file and see how it gets
converted/rendering by the XSL file.
HTH
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: L R [mailto:[EMAIL PROTECTED]
Sent: 31 July 2007 16:15
To: Graham, Darren F
Cc: [email protected]
Subject: Re: [Mapbuilder-users] GetFeatureInfo is not
working
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' <http://www.openplans.org/topp%27>
</namespace>
<widgets>
<FeatureInfo id="features">
<htmlTagId>featureInfo</htmlTagId>
<!--
<outputNodeId>featureInfoCanvas</outputNodeId> -->
<stylesheet>../../lib/widget/FeatureInfo.xsl</stylesheet>
<debug>1</debug>
</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.5alpha instead.
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] <mailto:[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
<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