setTraffic - it's great, but how can I hide the traffic after setTraffic()
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
You can hide the traffic flow by setting the "flow" parameter from TrafficOption class to "none".
map.setTraffic({
incidents: true,
flow: "none"
});
@HuckFin7b We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.
This does not work completely, images remain after disabling traffic

Those images are incidents images. You can remove them by setting the "incidents" parameter from TrafficOption class to "false"
map.setTraffic({
incidents: false,
flow: "none"
})
Most helpful comment
You can hide the traffic flow by setting the "flow" parameter from TrafficOption class to "none".