<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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:ns0 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[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 vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>layers[] is the variable of the layer tree, thats normal it
contain all the actualy visible layers</FONT></DIV>
<DIV><FONT size=2>the variable name of the query layers selection should
be query_inquery[], not layers[] as you seems to have in your query
template</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><STRONG><FONT size=2></FONT></STRONG> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=karsten@terragis.net href="mailto:karsten@terragis.net">karsten
vennemann</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 28, 2007 10:21
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Cartoweb-users] RE:
customize query tool and new tool in general</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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 face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">customized my query
template query.tpl. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&layers[]=counties&layers[]=roads&layers[]=people_in_institutions_per_tract<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What do I have to change to fix
this?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Karsten<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">-----------------------------<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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 face=Arial size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>