Hi,
I would like to know how to make a map where I can click on a feature and
have it return the feature's record in either WMS or WFS.
I have been through the tutorials and this forum, but I do not see how this
should work. My Config.xml file is below for a WMS service. I am trying to
make the click happen with the featureInfoRequest as shown below.
Thank you,
Lela
<?xml version="1.0" encoding="utf-8" standalone="no"?>
Context for the main map
Pointer to the Context XML file holding the layers
doarContext.xml
Draws the main map in the "mainMapPane" div tag
mainMapPane
Pegs the size of the map to the window specified in the Context XML file -
if this is "false," the map will be full screen
true
WMS layers will tile outside of the display for faster rendering when
panning
true
Reprojects WMS layers
true
Draws the legend in the "legend" div tag
legend
Remembers the zoom history to enable the "Back" and "Forward" buttons below
Part of the not working click feature - Initiates a WFS GetFeature request
from the target model "featureInfoRequest" below - I think this part
working (look in Firebug and the WFS request is being made) but it returns
no data. This could be because there are no WFS layers on the map right now,
or it could be that the area of the click is too small, or it could be that
the area (set in the "tolerance" tag in the "GetFeatureInfoWSR" widget
below) is too big and can't return just one feature. We could test this by
removing the "featureCount" tag in this request.
featureInfoResponse
wfs:GetFeature
application/vnd.ogc.gml
1
I think the nodeSelectXpath sets where layers are located in the Context
file - this is an optional file, and I'm not really sure of it's purpose. It
could be that if we remove the "/wmc:Layer" text, we might be able to see
WFS layers that are added in the legend. WFS layers are added in the Context
file with the "FeatureType" tag and not the "Layer" tag.
/wmc:ViewContext/wmc:ResourceList/wmc:Layer
This model is also part of the not working click feature - this places the
output of the above "WebServiceRequest" into the "workspace" div tag on the
html page. Unsure what the "outputNodeId" tag is doing. I also don't fully
understand the what the "namespace" tag is all about.
workspace
workspaceCanvas
xmlns:gml='http://www.opengis.net/gml'
xmlns:wfs='http://www.opengis.net/wfs'
xmlns:topp='http://www.openplans.org/topp'
These widgets set up the buttons in the button bar ("mainButtonBar" div tag
on the html page)
Identify tool button. Points to the "featureInfoControler" web service
request above.
mainButtonBar
mainMap
RadioButton
10
/images/QueryEnable.png
/images/QueryDisable.png
featureInfoController
Zoom in
mainButtonBar
mainMap
RadioButton
true
/images/ZoomInEnable.png
/images/ZoomInDisable.png
Zoom out
mainButtonBar
mainMap
RadioButton
/images/ZoomOutEnable.png
/images/ZoomOutDisable.png
Pan
mainButtonBar
mainMap
RadioButton
/images/PanEnable.png
/images/PanDisable.png
Go back in zoom history
mainButtonBar
mainMap
Button
/images/UndoDisable.png
Go forward in zoom history
mainButtonBar
mainMap
Button
/images/RedoDisable.png
Zoom out to the full extent
mainButtonBar
mainMap
Button
/images/ResetExtentDisable.png
Skin - not sure what this does or if we could customize
http://maps.nijel.org/mapbuilder/lib/skin/default
--
View this message in context:
http://www.nabble.com/Click-on-Features-in-Mapbuilder-and-get-record-tp16929923p16929923.html
Sent from the MapBuilder Users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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