[OpenLayers-Users] clickTolerance on selectFeature?

Alex Brandsen alex.brandsen at gmail.com
Tue Aug 10 08:48:43 EDT 2010


On Tue, Aug 10, 2010 at 1:45 PM, Eric Lemoine
<eric.lemoine at camptocamp.com>wrote:

> On Tue, Aug 10, 2010 at 1:55 PM, Alex Brandsen <alex.brandsen at gmail.com>
> wrote:
> >
> >
> > On Tue, Aug 10, 2010 at 12:50 PM, Eric Lemoine <
> eric.lemoine at camptocamp.com>
> > wrote:
> >>
> >> On Tue, Aug 10, 2010 at 1:40 PM, Alex Brandsen <alex.brandsen at gmail.com
> >
> >> wrote:
> >> > Hi all,
> >> >
> >> > I still haven't found a way to make this work, does anyone have any
> >> > suggestions?
> >> >
> >> > To rephrase: I need some way to select a feature when a click occurs
> on,
> >> > or
> >> > in the area around the feature, for example 20 pixels.
> >>
> >> To my knowledge there's no way to do that with one feature. However
> >> you could do that with two features, the one below the real feature
> >> would be invisible.
> >>
> >>
> >
> > Oh, I see I've made an error explaining, I need this to work for all my
> > features, in all layers.
> >
> > Or did you mean cloning all features on a separate layer, turning that
> layer
> > off and then changing something in the config of that layer?
> >
> > Please elaborate. :)
>
> I mean creating like clones, but larger, and adding them to the same
> layer. It should easily work for point, but it'd required buffer
> calculation for polygons and lines. So it's not so good.
>
>
> I'm mainly dealing with polylines, but if that is the only way, then so be
it. How can I perform buffer calculations?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100810/3d95dfb4/attachment.html


More information about the Users mailing list