Azure-docs: unsetTraffic

Created on 2 Jul 2018  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

setTraffic - it's great, but how can I hide the traffic after setTraffic()


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-mapsvc cxp product-question triaged

Most helpful comment

You can hide the traffic flow by setting the "flow" parameter from TrafficOption class to "none".

map.setTraffic({
  incidents: true,
  flow: "none"
});

All 4 comments

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
image

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" })

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianpowell2017 picture ianpowell2017  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments