[Users] GeoExt Action question
Dan Ramage
dan at inlet.geol.sc.edu
Tue Nov 16 21:21:23 CET 2010
Still haven't figured out what the heck is going on, but after more
experimentation I've found that if in the GeoExt.Action configuration I
define the handler instead of a toggleHandler, the problem does not occur.
Currently I have 2 SelectFeature controls on the same layer, a hover and the
click(the one which quits working). I also discovered if I remove the hover
SelectFeature I do not get the problem. I've seen some discussion in the
OpenLayers forum about having 2 SelectFeatures on the same layer so perhaps
it still does not work 100%.
My best guess is there is something happening in the OpenLayers where the
SelectFeature control is no longer in the event chain.
Does anyone know where I could put a breakpoint to see how events flow to
the controls on the map?
Sorry for the rambling thread.
Dan
-----Original Message-----
From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
Of Dan Ramage
Sent: Tuesday, November 16, 2010 8:51 AM
To: 'Matt Priour'; users at geoext.org
Subject: Re: [Users] GeoExt Action question
Too make things even stranger is I have another SelectFeature control on the
same layer that I use for providing a tooltip when I hover over a feature.
That one still works.
Dan
-----Original Message-----
From: Matt Priour [mailto:mpriour at kestrelcomputer.com]
Sent: Monday, November 15, 2010 4:05 PM
To: Dan Ramage; users at geoext.org
Subject: Re: [Users] GeoExt Action question
I was not clear at all, sorry.
What I meant was that maybe you accidentally had a toggleGroup set on that
action button which was interacting with the other action buttons and
causing problems.
Matt Priour
--------------------------------------------------
From: "Dan Ramage" <dan at inlet.geol.sc.edu>
Sent: Monday, November 15, 2010 2:15 PM
To: "'Matt Priour'" <mpriour at kestrelcomputer.com>; <users at geoext.org>
Subject: RE: [Users] GeoExt Action question
> I just experimented putting the toggleGroup: in the SelectFeature object,
> although still not working.
>
> I removed the eventListeners activate/deactivate from the ZoomBox controls
> for Zoom in/out Actions. I replaced them with a toggleHandler function,
> however that has the same issue as well.
>
> If I remove the events and handlers from the Action, then I the
> SelectFeature works as desired.
>
>
> Dan
>
> -----Original Message-----
> From: Matt Priour [mailto:mpriour at kestrelcomputer.com]
> Sent: Monday, November 15, 2010 2:56 PM
> To: Dan Ramage; users at geoext.org
> Subject: Re: [Users] GeoExt Action question
>
> do you have a 'toggleGroup' attribute set on the SelectFeature control and
> is it the same as the toggle group on other buttons?
>
> Matt Priour
>
> --------------------------------------------------
> From: "Dan Ramage" <dan at inlet.geol.sc.edu>
> Sent: Monday, November 15, 2010 10:05 AM
> To: <users at geoext.org>
> Subject: Re: [Users] GeoExt Action question
>
>> After more debugging, I've determined the SelectFeature is active. The
>> cause
>> of my issue seems to be caused by having eventListeners for
>> activate/deactivate defined in my the 2 GeoExt.Action objects(one for
>> zoom
>> in, one for zoom out). My first guess is the eventListeners are
>> interfering
>> with the click handler.
>>
>> Dan
>>
>> -----Original Message-----
>> From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On
>> Behalf
>> Of Dan Ramage
>> Sent: Monday, November 15, 2010 9:34 AM
>> To: users at geoext.org
>> Subject: [Users] GeoExt Action question
>>
>> I've got a toolbar with the usual compliment of Zoom/Pan type controls.
>> I've
>> noticed that when I enable one of these controls, my SelectFeature
>> control
>> for my main vector layer seems to be de-activated. Is this normal
>> behavior?
>> I think I've just noticed this since I've started using vector features
>> and
>> AJAX as opposed to GetFeatureInfo queries.
>>
>>
>> Dan
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>
>
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list