[OpenLayers-Users] possible control.clickFeature bug

Eric Lemoine eric.c2c at gmail.com
Sat Mar 15 04:48:33 EDT 2008


I mean: sc.clickFeature.call(sc,feature)

2008/3/15, Xin <xin at zenpow.com>:
> Yes, I am using the select feature control.
>
> Do you mean sc.clickFeature.call(feature)? This is not working for me.
>
> I think I know what the underlining issue might be. The link that calls
> clickFeature is in a block of HTML pulled in by AJAX. It's the textual
> results of the KML points. Can you see this causing any problems?
>
> It seems this.multipleKey is not correctly set. This does look like a bug.
> I'll have a closer look later.
>
> Thanks for the help.
>
> On 15/03/2008, Eric Lemoine <eric.c2c at gmail.com> wrote:
> >
> > Xin, i guess you're using the select feature control. Have you tried
> > using the following to call clickFeatuse : sc.clickFeature.call(sc) ?
> >
> > 2008/3/14, Xin <xin at zenpow.com>:
> >
> > > Hi,
> > >
> > > I am getting this error when calling clickFeature. It is called when I
> > click
> > > on a link with onclick.
> > >
> > > this.multipleKey has no properties
> > > multipleSelect()OpenLayers.js (line 815)
> > > forwardMercator(Object layer=Object data=Object)OpenLayers.js (line 814)
> > > previewFeature(0)namibia.js (line 177)
> > > onclick(click clientX=0, clientY=0)localhost:3000 (line 1)
> > > this.select(feature);}}},multipleSelect:function(){return
> > > this.multiple||this.ha...
> > >
> > > The behaviour of this error is strange. Clicking on the feature
> > > works.Executing the code in Firebug console. After which, clicking on
> > > the trigger
> > > link works.
> > > On refreshing the page, the problem would come back.
> > >
> > > I have just updated to the latest trunk.
> > >
> > > I've been stuck with this for a couple of days now. I would really
> > > appreciate any help.
> > >
> > > Xin
> > >
> >
>



More information about the Users mailing list