Skip to content
Discussion options

You must be logged in to vote

These is indeed a (undocumented) lifecycle method on each layer called updateAutoHighlight (which calls a protected implementation _updateAutoHighlight):

updateAutoHighlight(info: PickingInfo): void {
if (this.props.autoHighlight && !Number.isInteger(this.props.highlightedObjectIndex)) {
this._updateAutoHighlight(info);
}
}

By default CompositeLayer just passes the picking info down to all sublayers:

protected _updateAutoHighlight(info: PickingInfo): void {
for (const layer of this.getSubLayers()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Dv-Andrew
Comment options

@ted341
Comment options

Answer selected by Dv-Andrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants