Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature with highlight, toggle

2010-08-27 Thread Eric Lemoine
On Fri, Aug 27, 2010 at 3:37 PM, Christian Niemitz-Rossant wrote: > Hi Eric, > after filing the ticket > > http://trac.openlayers.org/ticket/2812 > > I got a message from Ilias, because he had to deal with the same problem. > His solution to add to the selectCtrl an onUnselect and in this function

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature with highlight, toggle

2010-08-27 Thread Christian Niemitz-Rossant
Hi Eric, after filing the ticket http://trac.openlayers.org/ticket/2812 I got a message from Ilias, because he had to deal with the same problem. His solution to add to the selectCtrl an onUnselect and in this function to call highlightCtrl.unhighlight(feature); works fine for me. The two contr

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature with highlight, toggle

2010-08-26 Thread Eric Lemoine
On Thu, Aug 26, 2010 at 9:13 AM, Christian Niemitz-Rossant wrote: > I have some troubles using feature selection with highlight and toggle: > > In the OpenLayers example highlight-feature.html I replaced the line 55 > which is > > {clickout: true} > > by > > {toggle: true} > > Then I applied these

[OpenLayers-Users] OpenLayers.Control.SelectFeature with highlight, toggle

2010-08-26 Thread Christian Niemitz-Rossant
I have some troubles using feature selection with highlight and toggle: In the OpenLayers example highlight-feature.html I replaced the line 55 which is {clickout: true} by {toggle: true} Then I applied these steps 1. move cursor on the left triangle => triangle is highlighted 2. click on the

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-16 Thread Richard Eichhorn
Hi Eric, That did it. You're a genius. Cheers, Richard. 2009/11/17 Eric Lemoine > On Thursday, November 12, 2009, Richard Eichhorn > wrote: > > I am using OpenLayers.Control.SelectFeature with features which are > represented using an externalGraphic. When I use do a shift-click to > multi-

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-16 Thread Eric Lemoine
On Thursday, November 12, 2009, Richard Eichhorn wrote: > I am using OpenLayers.Control.SelectFeature with features which are > represented using an externalGraphic.  When I use do a shift-click to > multi-select features in Firefox, it opens up a new window with the icon of > the feature I jus

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-16 Thread Richard Eichhorn
Hi Pedro, Thanks for the examples, but I was looking for an example where a handler is defined within the selectFeature control. I want the default behavior for a click and shiftClick, I just want to stop the event propagating to the browser. I have a feeling this could be a bug, as I had a look

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-16 Thread Pedro Baracho
I have seen two examples of handlers to Click event: http://openlayers.org/dev/examples/click.html http://openlayers.org/dev/examples/click-handler.html I think you will have to create a handler to Keyboard events also, so you can capture the Shift+Key. In fact, I think you will only need that. Tr

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-12 Thread Richard Eichhorn
Thanks for that. I did come across that, but I couldn't figure out how to use it in the context of OpenLayers.Control.SelectFeature. There is a handlers property but I can't figure out how to use it. Has anyone got an example of creating an OpenLayers.Control.SelectFeature with a handlers proper

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-12 Thread Pedro Baracho
I am not sure if that helps, but there is a function stop on Event class for stopping event propagation. http://dev.openlayers.org/docs/files/OpenLayers/Events-js.html#OpenLayers.Event.stop On Thu, Nov 12, 2009 at 5:47 AM, Richard Eichhorn wrote: > I am using OpenLayers.Control.SelectFeature with

[OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-11 Thread Richard Eichhorn
I am using OpenLayers.Control.SelectFeature with features which are represented using an externalGraphic. When I use do a shift-click to multi-select features in Firefox, it opens up a new window with the icon of the feature I just clicked on. When writing non-openlayers javascript code I have ju

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature in Mutiple Layers

2008-11-17 Thread Alexandre Dube
ashlin, You could also take a look at this link : http://ol.m-click.ws/ Alexandre ashlin wrote: > Hi, > > I would like to know if it is possible to implement select feature in > multiple layers. Is there any way to achieve that? > > Currently, I have about 5 layers of different types of objects

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature in Mutiple Layers

2008-11-17 Thread Alexandre Dube
Hi ashlin, I had to deal with a very similar problem. My workaround was to use only one vector layer containing all typeNames in it. OpenLayers didn't fully support this so I had to do some dirty hacks to make it work. I see in Trac that there's currently some work being done to resolve this.

[OpenLayers-Users] OpenLayers.Control.SelectFeature in Mutiple Layers

2008-11-16 Thread ashlin
Hi, I would like to know if it is possible to implement select feature in multiple layers. Is there any way to achieve that? Currently, I have about 5 layers of different types of objects. I would like all objects in these 5 layers to be selectable. I noticed that OpenLayers.Control.SelectFeatur

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature

2008-08-11 Thread Eric Lemoine
Oh sorry for the confusion, i went a little too fast. Eric 2008/8/11, Christopher Schmidt <[EMAIL PROTECTED]>: > On Mon, Aug 11, 2008 at 05:56:39PM +0200, Eric Lemoine wrote: >> On Mon, Aug 11, 2008 at 5:50 PM, Walter Lorenzetti <[EMAIL PROTECTED]> >> wrote: >> > Ai all, >> > >> > is possible adds

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature

2008-08-11 Thread Christopher Schmidt
On Mon, Aug 11, 2008 at 05:56:39PM +0200, Eric Lemoine wrote: > On Mon, Aug 11, 2008 at 5:50 PM, Walter Lorenzetti <[EMAIL PROTECTED]> wrote: > > Ai all, > > > > is possible adds to the map 2 OpenLayers.Control.SelectFeature on 2 > > different vector layer at the same time? > > Not currently. But

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature

2008-08-11 Thread Walter Lorenzetti
Eric Lemoine ha scritto: On Mon, Aug 11, 2008 at 5:50 PM, Walter Lorenzetti <[EMAIL PROTECTED]> wrote: Ai all, is possible adds to the map 2 OpenLayers.Control.SelectFeature on 2 different vector layer at the same time? Not currently. But Christopher Schmidt has been working on a Canv

Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature

2008-08-11 Thread Eric Lemoine
On Mon, Aug 11, 2008 at 5:50 PM, Walter Lorenzetti <[EMAIL PROTECTED]> wrote: > Ai all, > > is possible adds to the map 2 OpenLayers.Control.SelectFeature on 2 > different vector layer at the same time? Not currently. But Christopher Schmidt has been working on a Canvas renderer that should make t

[OpenLayers-Users] OpenLayers.Control.SelectFeature

2008-08-11 Thread Walter Lorenzetti
Ai all, is possible adds to the map 2 OpenLayers.Control.SelectFeature on 2 different vector layer at the same time? Thanks in advance Walter ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users