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) {
lyrView.highlight(1148);
});
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.