<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Alex,<br>
<br>
&nbsp; 'clickTolerance' is a OpenLayers.Handler.Feature property.&nbsp; If you
look in the Select.js file, you'll see that the handler is set inside
the initialize method and that there is no way other than modifying the
code there to set your own 'clickTolerance'.&nbsp; A thing you could do is
to overwrite its default value to what you want but it will affect
every other Controls that use it (do it before defining your
SelectFeature control ) :<br>
<br>
&nbsp; OpenLayers.Handler.Feature.prototype.clickTolerance = 100;<br>
<br>
&nbsp; Try it and tell me if that worked for you.<br>
<br>
Kind regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 10-08-02 04:40 PM, Alex Brandsen wrote:
<blockquote
 cite="mid:AANLkTinMj=TRXjV9Aeq7Wtp3x6GTWD+r1h9-eESOgKuU@mail.gmail.com"
 type="cite">Hi all,<br>
  <br>
is it possible to set the clickTolerance on a selectFeature control? I
can find the clickTolerance on the getFeature control :<br>
  <br>
(<a moz-do-not-send="true"
 href="http://dev.openlayers.org/docs/files/OpenLayers/Control/GetFeature-js.html#OpenLayers.Control.GetFeature.clickTolerance">http://dev.openlayers.org/docs/files/OpenLayers/Control/GetFeature-js.html#OpenLayers.Control.GetFeature.clickTolerance</a>)<br>
  <br>
but not in the documentation of selectFeature. If I just try to add
"clickTolerance: 100" to the options array of selectFeature it has no
effect...<br>
  <br>
Thanks,<br>
  <br>
Alex.<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Alexandre Dub&eacute;
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>