[ka-Map-users] Search toggle in kaAqua

Lorenzo Becchi lorenzo at ominiverdi.com
Thu Mar 8 10:56:02 EST 2007


> Hi to all users
>
> This a newbie question, I am setting up a webgis using the Aqua
> interface, and one of the toggles is called "search"  that is on the
> lower left. I was thinking that any query should have its result in this
> toggle an not as an independent window. Is there an example or
> explanation on how I can make the query result appear in this toggle ?!
> Thanks

Hi Jorge,
actually only search results appears on search panel.
you can easily customize query to output in the same panel.

to do this here's a patch that should work


Index: htdocs/tools/kaAqua/startUp.js
===================================================================
RCS file: /cvs/maptools/cvsroot/ka-map/htdocs/tools/kaAqua/startUp.js,v
retrieving revision 1.2
diff -u -r1.2 startUp.js
--- htdocs/tools/kaAqua/startUp.js    9 Sep 2006 12:03:34 -0000    1.2
+++ htdocs/tools/kaAqua/startUp.js    8 Mar 2007 15:54:46 -0000
@@ -319,11 +319,16 @@
     var cMap = myKaMap.getCurrentMap().name;
     var 
params='map='+cMap+'&q_type='+queryType+'&scale='+scale+'&groups='+szLayers+'&coords='+coords+'&extent='+extent[0]+'|'+extent[1]+'|'+extent[2]+'|'+extent[3];
 
-    WOOpenWin( 'Query', 'map_query.php?'+params, 
'resizable=yes,scrollbars=yes,width=600,height=400' );
+    //WOOpenWin( 'Query', 'map_query.php?'+params, 
'resizable=yes,scrollbars=yes,width=600,height=400' );
 
+    call('map_query_float.php?'+params,this, setQueryOutput);
 //    alert( "Map: " + cMap + " | Scale: " + scale + " | Extent: " + 
extent + " | QUERY: " + queryType + " " + coords + " on layers " + 
szLayers );
 }
 
+function setQueryOutput(szResult){
+    getRawObject('searchres').innerHTML = szResult;
+}
+
 function myMapClicked( eventID, coords ) {
     //alert( 'myMapClicked('+coords+')');
     //myKaMap.zoomTo(coords[0],coords[1]);



More information about the ka-Map-users mailing list