Skip to content

How to make the EmphasizeElements class act on ExternalIModels #6730

Answered by pmconne
peiyanlu asked this question in Q&A
Discussion options

You must be logged in to vote

EmphasizeElements applies FeatureSymbology.Overrides to the view. In the line below, you are replacing the view's overrides with your own.

args.graphics.symbologyOverrides = this._overs

If that was what you actually wanted to do, the "right" way is to override TileTreeReference.getSymbologyOverrides.

If you want the view's overrides to apply to your tile tree, don't provide your own overrides.
If you want to selectively customize how the view's overrides are applied to your tile tree, implement TileTreeReference.getAppearanceProvider, perhaps using FeatureAppearanceProvider.supplement or FeatureAppearanceProvider.chain.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@peiyanlu
Comment options

@pmconne
Comment options

@peiyanlu
Comment options

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