Adrain,
Sorry for our poor track record responding. As mapbuilder becomes more 
popular, I find it harder to answer everyone's questions.
If a question takes me more than 5 mins to work out, I often won't have 
time to answer it.

Anyway, for your question about AOI.
 From memory, the zoomToAoi tool uses a bounding box defined by the 
mouse selection. It doesn't work on a selected feature.
I agree that a zoomToFeature tool would be very useful. If you want to 
write one, I suggest:

Write a ZoomToFeature widget.
Base it on the InsertFeature.js widget to see how it selects a 
FeatureCollection.
Write a getBBox() function  if it doesn't already exist to get the BBox 
of the FeatureCollection.
Look at the Zoom.js or Pan.js to see how to zoom to a new AOI.



[EMAIL PROTECTED] wrote:
>
> Hi everyone
> I'm trying to zoom over the bbox defined by the result of a 
> wfsGetFeature request.
> In order to do that on my project, I'm trying to make the wfs-t demo 
> zoom-to the
> selected feature.
>
>
>
> This is part of my mapconfig.xml of mapbuilder, in the widgets section 
> I  have the following segment:
>
> <WfsGetFeature id="wfsGetFeature">
>     <buttonBar>mainButtonBar</buttonBar>
>     <targetModel>mainMap</targetModel>
>     <mouseHandler>mainMouseClick</mouseHandler>
>     <class>RadioButton</class>
>     <enabledSrc>/images/QueryEnable.png</enabledSrc>
>     <disabledSrc>/images/QueryDisable.png</disabledSrc>
>     <transactionResponseModel>featureCollection</transactionResponseModel>
>     <webServiceUrl>../../../geoserver/wfs</webServiceUrl>
>     <typeName>topp:tasmania_cities,topp:tasmania_roads</typeName>
>     <tolerance>5</tolerance>
> </WfsGetFeature>
>
>
>
> Within the the models section I put this
>
> <FeatureCollection id="featureCollection">
>     <widgets>
>            <AoiBoxWZ id="aoiBox5">
>             <targetModel>mainMap</targetModel>
>                   <htmlTagId>mainMapPane</htmlTagId>
>                   
> <stylesheet>/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
>                   <lineColor>#FF0000</lineColor>
>                   <lineWidth>1</lineWidth>
>                   <crossSize>15</crossSize>
>                   <mapContainerId>mainMapContainer</mapContainerId>
>                 </AoiBoxWZ>
>             <GmlRendererWZ id="testGmlRenderer">
>                     <htmlTagId>mainMapPane</htmlTagId>
>                     <targetModel>mainMap</targetModel>
>                     <mapContainerId>mainMapContainer</mapContainerId>
>                     <lineColor>#FF0000</lineColor>
>                     <lineWidth>3</lineWidth>
>                     <pointDiameter>10</pointDiameter>
>             </GmlRendererWZ>
>             <FeatureList id="featureList">
>             </FeatureList>
>             </widgets>
>             <tools>
>
>                 <ZoomToAoi id="locatorZoomToAoi22">
>                     <targetModel>mainMap</targetModel>
>                 </ZoomToAoi>
>            
>             </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>
>
>
> The GmlRendererWZ is working and showing the selected features on the 
> map, as well the FeatureList widget is showing the data on the page, 
> but an error occurs on the ZoomToAoi.js, and the extent of the map 
> doesn't change.
>
> (when I can make it work I will replace the WfsGetFeature for a 
> WebServiceForm pionting to the WFS I think, I need a search based on a 
> few fields and then zoom-to the found features)
>
> I think this is a basic functionallity on a GIS application and there 
> must be many examples about how to do this but I just can't find them. 
> This is my third ask for help to the mailist, there were no answers 
> (if there is a more basic source of help please send me a link), I've 
> been searching for it since several weeks ago. I will appreciate any 
> help about how to do this, Please guide me if I'm taking a wrong 
> approach.
> thanks in advance,
>
> Adrián.
>
>
> */[EMAIL PROTECTED]/* escribió:
>
>     I've been diving through documentation and the maillist store and
>     I couldn't find what I need.  It would be great if someone could
>     help me with my question of the other day. We are triyng to use
>     geoserver and mapbuilder to view cartography, as far as we know,
>     of one of the world's.largest cadastres.
>     I think the slow wms getFeatureinfo (geoserver 1.5 on a large
>     layer), could be enough for now for the point 1) (only layers
>     fields), but for point 2) I'm completaly lost. should I use
>     WebServiceForm? do I need to program a web service for that? what
>     kind of xml should I response from that web service? I couldn't
>     find working examples for that kind of search.
>     thanks in advance.
>
>     */Adrian Demaestri <[EMAIL PROTECTED]>/* escribió:
>
>         Hi everyone,
>         I want to ask the list the best way to do the following two
>         points:
>         1)When the user clicks the map using the identify tool, a new
>         window popups showing information of the feature clicked and
>         other info asociated with that feature but stored in other
>         data sources not in the wms layer.
>
>         and
>         2) A search form (in the same page of the mainmap), in which
>         we can enter a few fields and then pressing a button the map
>         show the extent of the features that meet the search criteria.
>
>
>
>         Which is the best aproach to do both?
>
>
>     __________________________________________________
>     Correo Yahoo!
>     Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
>     Regístrate ya - http://correo.espanol.yahoo.com/
>
>
>
>
> --------------------------------------------
> *Adrián H. Demaestri*
> *Ingeniero en Sistemas*
> Ministerio de Economía pcia. Bs. As
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>   


-- 
Cameron Shorter
Systems Architect, http://lisasoft.com.au
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to