How do I set the scope for any of the callbacks associated in the SelectFeature
control?
Var featSelect = new OpenLayers.Control.SelectFeature(
this.Layer,
{
...
scope: this, // Appearently not for the callbacks
callbacks: { 'click': this.handleClick }
}
);
Using closures doesn't seem to work either.
Var featSelect = new OpenLayers.Control.SelectFeature(
this.Layer,
{
...
scope: this, // Appearently not for the callbacks
callbacks: { 'click': function (feat) {
this.handleClick(feat);
}
}
}
);
I'm still working on learning how to understand the OpenLayers source and how
to handle scopes in general :)
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users