<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I have a point and a polygon layer. Most of the times only the point data will be queried, but it can be different too. So, I would like to limit the highlighting in the resulting map to (sometimes) only the point layer. But in the moment, when drawing a rectangle it always highlights the points as well as the polygons.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The doc is saying:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><B>queryByRect( </B></SPAN></FONT><A href="http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#mapobj"><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><FONT class="Apple-style-span" color="#0063E9"><B>mapObj</B></FONT></SPAN></FONT></A><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><B> map, </B></SPAN></FONT><A href="http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#rectobj"><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><FONT class="Apple-style-span" color="#0063E9"><B>rectObj</B></FONT></SPAN></FONT></A><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><B> rect ) : int</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;">Query layer using a rectangle specified in georeferenced map coordinates (i.e. not pixels). The query is performed on all the shapes that are part of a CLASS that contains a TEMPLATE value or that match any class in a layer that contains a LAYER TEMPLATE value. Returns MS_SUCCESS if shapes were found or MS_FAILURE if nothing was found or if some other error happened.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>//Query the Map</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>if (!$imgbox)</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>$map -&gt; queryByPoint($click_pt, MS_MULTIPLE, -1);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>else</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>$map -&gt; queryByRect($click_rt);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 12.1px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">So, it gives me the impression that there is no solution to the problem.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Or can someone help me?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Stef</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV></BODY></HTML>