AnsweredAssumed Answered

Why isn't the highlight method working in a 2d layer view?

Question asked by Jefairfi on Mar 19, 2018
Latest reply on Mar 28, 2018 by rscheitlin

I am trying to simply highlight a graphic from a feature layer using the highlight method on the feature layer view (Highlight).


I changed the basic feature layer example by adding this section:


view.whenLayerView(featureLayer).then(function (lyrView) {


Here is a live example:


Live Example


I did notice this caveat in the documentation, but I am setting the webgl property in the dojo config:


Known Limitations

In 2D MapViews this method is only supported for FeatureLayers that have opted in to WebGL rendering.

I'm not sure if there is something I'm doing wrong, or if it's a bug in the js sdk.  Any help would be appreciated.