Hi. Seems like highlighting features got a lot easier. For some reason, the automatic highlighting is not working in my app. Here is the snippet. Adding a webmap. The map contains a feature layer (uses picture icons). I'm disabling the popup because I need to create a custom popup programatically. Any ideas why highlighting would not be working?
Thx
app = JSON.parse(config);
app.mapView = new MapView({
container: app.containerMap,
highlightOptions: {
color: [255, 255, 0, 1],
haloOpacity: 0.9,
fillOpacity: 0.2
}
});
props = {
portalItem: {
id: app.webMapItem
}
}
let webMap = new WebMap(props);
webMap.load().then(function () {
webMap.layers.filter(function (layer) {
return layer.type === 'feature';
}).map(function (layer) {
layer.outFields = ['*'];
console.log(layer);
return layer;
});
});
app.mapView.map = webMap;
app.mapView.padding = app.viewPadding;
app.mapView.ui = {components: app.uiComponents};