Mi Marc,<br><br>so you have to request feature from the server, not feature info.<br><br>A click event on a map returns the values for x and y in the view port. You should make a box of those adding and substracting a custom tolerance value. After you&#39;ve done so you got 4 values: minx = x - tolerance, miny = y - tolerance, maxx = x + tolerance, maxy = y + tolerance. These can be converted to latitude-longitude values using OpenLayers (
map.getLonLatFromViewPortPx function). After all of these actions you get your BBOX so you can send a request to the geoserver like this: <a href="http://your_host/geoserver/wfs?REQUEST=GetFeature&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=your_layer_names&amp;BBOX=your_bbox&amp;MAXFEATURES=10">
http://your_host/geoserver/wfs?REQUEST=GetFeature&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=your_layer_names&amp;BBOX=your_bbox&amp;MAXFEATURES=10</a><br><br>That&#39;s the only workaround I know.<br><br>Cheers,<br>Dmitri
<br><br><div><span class="gmail_quote">2007/7/20, Marc Desharnais &lt;<a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I&#39;m using geoserver so I guess your solution won&#39;t work. Anyone has an<br>idea about setting a tolerance level in geoserver?<br>Or anything that would make it easier to click on a point of a map with
<br>geoserver.<br><br><br>Thanks,<br><br>Marc<br><br><br>Dmitri Mizerkin wrote:<br>&gt; Hi Bill,<br>&gt;<br>&gt; that&#39;s the right way to do it. What I meant is setting the tolerance<br>&gt; via URL, in your case it would be sth like
<br>&gt; <a href="http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet">http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet</a><br>&gt; &lt;<a href="http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet">
http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet</a>&gt;<br>&gt; (I don&#39;t know if the underscores in your layer name won&#39;t affect the<br>&gt; functionality so I&#39;m assuming that it is the first layer in the
<br>&gt; mapfile and using the index of it). More information can be found on<br>&gt; <a href="http://mapserver.gis.umn.edu/docs/reference/cgi/controls">http://mapserver.gis.umn.edu/docs/reference/cgi/controls</a> in the very
<br>&gt; last chapter &quot;Changing map file parameters via a form or a URL &quot;.<br>&gt;<br>&gt; Hopefully it helps Marc with his issue.<br>&gt;<br>&gt; Regards,<br>&gt; Dmitri<br>&gt;<br>&gt; 2007/7/20, Bill Woodall &lt;
<a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a><br>&gt; &lt;mailto:<a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a>&gt;&gt;:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi All<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; What has worked for me in using TOLERANCE is to put it into the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; mapfile<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ( if you are using MapServer) like ;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LAYER<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME Scrub_and_Chaparral<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE blank<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TOLERANCE 1<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TOLERANCEUNITS feet
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;Scrub_and_Chaparral&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_include_items&quot;&nbsp;&nbsp;&quot;CATEGORY,LEGEND,SOURCE&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA Scrub_and_Chaparral<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ......Bill,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi Marc,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; in a WMS/WFS service request the attribute you are looking for is<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; called TOLERANCE. I think this should do it when set as a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; parameter in
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; getFullRequestString function (see user recipies:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</a>).<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hopefully it helps you out.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Cheers,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Dmitri<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 2007/7/19, Marc Desharnais &lt; <a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>&gt;&gt;:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hi all,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I search for an attribute to set to make it easier to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; click on
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; points to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get some info about them.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I tried some things like RADIUS or REDIUS (saw that on a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; page<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; internet) but nothing works.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I just want it to be easier to click on the point if it&#39;s<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; possible, a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; couple of pixels more.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank in advance,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Marc<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a> &lt;mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org
</a> &lt;mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br><br></blockquote>
</div>