[OpenLayers-Users] possible control.clickFeature bug
Xin
xin at zenpow.com
Sat Mar 15 10:17:28 EDT 2008
Ghastly. I get the same error.
A hackaround.
I have changed
return this.multiple || this.handler.evt[this.multipleKey];
to
return this.multiple;
On 15/03/2008, Eric Lemoine <eric.c2c at gmail.com> wrote:
>
> 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
> > > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080315/e3bb6ad1/attachment.html
More information about the Users
mailing list