<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.terra, li.terra, div.terra
        {margin:0in;
        margin-bottom:.0001pt;
        line-height:15.0pt;
        font-size:11.0pt;
        font-family:Arial;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ok I successfully added the QueryByPoint tool to the tool
bar (set weightQueryByPoint = 40 in query.ini), set </span></font>displayExtendedSelection=true
and <font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>customized
my query template query.tpl. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>For right now I am working with checkboxes (like in CWDemo3)
to select layers to be queried. When I use the QueryByPoint I get the
following trace of the <st1:City w:st="on"><st1:place w:st="on">ajax</st1:place></st1:City>
call (below) <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The call refers to 3 layers (counties, roads, and people_in_institutions_per_tract):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>That happens even though I only checked the boxes for
counties to be queried!<br>
The only way to only have counties appear in the call is when I switch off all
layers except counties on the map.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What do I have to change to fix this?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Karsten<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>-----------------------------<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Calling Query.Perform onBeforeAjaxCall()<br>
Calling AjaxPlugins.Common.onBeforeAjaxCall()<br>
Initiating <st1:place w:st="on"><st1:City w:st="on">AJAX</st1:City></st1:place>
request<br>
Pending actions: 1<br>
GET params:<br>
ajaxActionRequest=Query.Perform&<br>
POST params:<br>
posted=1&js_folder_idx=7&selection_type=point&selection_coords=1530642.8571428572,536571.428571352&features=&project=ocla&fake_reset=&fake_query=&outline_label_text=Yourlabel&recenter_doit=0&=&openNodes=&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract&outline_mask=no&shortcut_doit=0&recenter_x=&recenter_y=&id_recenter_ids=&search_name=&search_config=countries&search_sort_column=&search_sort_direction=asc&search_number=&search_page=&query_layerid[]=counties&query_hilight[]=counties&query_attributes[]=counties&query_table[]=counties&query_layerid[]=people_in_institutions_per_tract&query_layerid[]=non_english_per_tract&recenter_scale=0&mapsize=0&shortcut_id=-1&search_country=GM&<br>
<br>
Waiting for response...<br>
Response received!<br>
Plugins that gave response: images query tables bboxHistory cartoMessages <br>
Updating GUI for plugin Images<br>
<br>
AjaxHandler.updateDomElement(): Updating keymap element's src's
value...Warning: given element (keymap) was not found in the DOM!<br>
AjaxHandler.updateDomElement(): Updating scalebar element's src's value...<br>
AjaxHandler.updateDomElement(): Updating map_drawing element's style.display's
value...Updating GUI for plugin QueryUpdating GUI for plugin
TablesAjaxHandler.updateDomElement(): Updating tables_result element's
innerHTML's value...<br>
Updating GUI for plugin BboxHistory<br>
Updating GUI for plugin <br>
<br>
CartoMessagesDeveloper messages: 2<br>
* mapResult returned from cache<br>
* array ( 'ajaxActionRequest' => 'Query.Perform', 'posted' => '1',
'js_folder_idx' => '7', 'selection_type' => 'point', 'selection_coords'
=> '1530642.8571428572,536571.428571352', 'features' => '', 'project'
=> 'ocla', 'fake_reset' => '', 'fake_query' => '',
'outline_label_text' => 'Your label', 'recenter_doit' => '0', 'openNodes'
=> '', 'layers' => array ( 0 => 'counties', 1 => 'roads', 2 =>
'people_in_institutions_per_tract', ), 'outline_mask' => 'no',
'shortcut_doit' => '0', 'recenter_x' => '', 'recenter_y' => '',
'id_recenter_ids' => '', 'search_name' => '', 'search_config' =>
'countries', 'search_sort_column' => '', 'search_sort_direction' =>
'asc', 'search_number' => '', 'search_page' => '', 'query_layerid' =>
array ( 0 => 'counties', 1 => 'people_in_institutions_per_tract', 2 =>
'non_english_per_tract', ), 'query_hilight' => array ( 0 => 'counties',
), 'query_attributes' => array ( 0 => 'counties', ), 'query_table' =>
array ( 0 => 'counties', ), 'recenter_scale' => '0', 'mapsize' => '0',
'shortcut_id' => '-1', 'search_country' => 'GM', 'LangCookie' => 'en',
'TestCookie' => 'OK', 'jsTrace' => '337px 264px 503px 715px', 'PHPSESSID'
=> '11508a0666ae177895e55e923d0a8989',)<br>
User messages: 0<br>
Calling Query.Perform onAfterAjaxCall()<br>
Calling AjaxPlugins.Common.onAfterAjaxCall()<br>
Clearing DHTML drawings...<br>
Clearing stored features...<br>
--- Action Query.Perform complete ---<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>