Yeah, apparently.. Do you (or anyone else) know how to create a similar effect with selectFeature then?<br><br>Alex.<br><br>Date: Wed, 04 Aug 2010 11:02:01 -0400<br>
From: Alexandre Dube &lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;<br>
Subject: Re: [OpenLayers-Users] clickTolerance on selectFeature?<br>
To: <a href="mailto:users@openlayers.org">users@openlayers.org</a><br>
Message-ID: &lt;<a href="mailto:4C5980E9.4000701@mapgears.com">4C5980E9.4000701@mapgears.com</a><div id=":14i">&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Alex,<br>
<br>
   My bad.  the &#39;clickTolerance&#39; of the GetFeature control has not the<br>
same purpose as the &#39;clickTolerance&#39; of the Feature Handler :<br>
<br>
<a href="http://dev.openlayers.org/docs/files/OpenLayers/Handler/Feature-js.html#OpenLayers.Handler.Feature.clickTolerance" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Handler/Feature-js.html#OpenLayers.Handler.Feature.clickTolerance</a><br>


<br>
Regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 10-08-04 10:36 AM, Alex Brandsen wrote:<br>
&gt; Hi Alexandre,<br>
&gt;<br>
&gt; thanks for your reply! I tried using<br>
&gt; OpenLayers.Handler.Feature.prototype.clickTolerance=100/1000/1000000;<br>
&gt; , but it makes no difference. It does get stored, because when I do<br>
&gt; alert(OpenLayers.Handler.Feature.prototype.clickTolerance); it does<br>
&gt; show the correct value.<br>
&gt;<br>
&gt; I also tried altering the clickTolerance in openlayers.js, but that<br>
&gt; didn&#39;t do anything either.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alex.<br>
&gt;<br>
&gt; Date: Tue, 03 Aug 2010 08:12:00 -0400<br>
&gt; From: Alexandre Dube &lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a> &lt;mailto:<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;&gt;<br>
&gt; Subject: Re: [OpenLayers-Users] clickTolerance on selectFeature?<br>
&gt; To: <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; Message-ID: &lt;<a href="mailto:4C580790.3030102@mapgears.com">4C580790.3030102@mapgears.com</a><br>
&gt; &lt;mailto:<a href="mailto:4C580790.3030102@mapgears.com">4C580790.3030102@mapgears.com</a>&gt;<br>
&gt; &gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi Alex,<br>
&gt;<br>
&gt;   &#39;clickTolerance&#39; is a OpenLayers.Handler.Feature property.  If you<br>
&gt; look in the Select.js file, you&#39;ll see that the handler is set inside<br>
&gt; the initialize method and that there is no way other than modifying the<br>
&gt; code there to set your own &#39;clickTolerance&#39;.  A thing you could do is to<br>
&gt; overwrite its default value to what you want but it will affect every<br>
&gt; other Controls that use it (do it before defining your SelectFeature<br>
&gt; control ) :<br>
&gt;<br>
&gt;   OpenLayers.Handler.Feature.prototype.clickTolerance = 100;<br>
&gt;<br>
&gt;   Try it and tell me if that worked for you.<br>
&gt;<br>
&gt; Kind regards,<br>
&gt;<br>
&gt; Alexandre<br>
&gt;<br>
&gt;<br>
&gt; On 10-08-02 04:40 PM, Alex Brandsen wrote:<br>
&gt; &gt; Hi all,<br>
&gt; &gt;<br>
&gt; &gt; is it possible to set the clickTolerance on a selectFeature control? I<br>
&gt; &gt; can find the clickTolerance on the getFeature control :<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; (<a href="http://dev.openlayers.org/docs/files/OpenLayers/Control/GetFeature-js.html#OpenLayers.Control.GetFeature.clickTolerance" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Control/GetFeature-js.html#OpenLayers.Control.GetFeature.clickTolerance</a>)<br>


&gt; &gt;<br>
&gt; &gt; but not in the documentation of selectFeature. If I just try to add<br>
&gt; &gt; &quot;clickTolerance: 100&quot; to the options array of selectFeature it has no<br>
&gt; &gt; effect...<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Alex.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Users mailing list<br>
&gt; &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; &gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Alexandre Dub?<br>
&gt; Mapgears<br>
&gt; <a href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a> &lt;<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Alexandre Dub?<br>
Mapgears<br>
<a href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a></div>