Skip to main content

Traffic Vector Tiles Overlay

Mappls Traffic Vector Tiles is an overlay that you can use to display real-time traffic conditions on a map.
The overlay provides constantly updating congestion information best viewed on Mappls map (Available with all styles of Mappls Map).

Read more for List of Available Styles

Preview Image

Implementation

To enable/disable Tiles Overlay follow the below code snippet. Default is false.

mapplsMap.enableTraffic(true); //To enable/disable all Traffic

To choose from different traffic flow information use below referred code. Default is true.

mapplsMap.enableTrafficClosure(false); //To enable/disable Traffic Closure Overlay 

mapplsMap.enableTrafficFreeFlow(false); //To enable/disable Free Flow (Green) Overlay

mapplsMap.enableTrafficNonFreeFlow(false); //To enable/disable Non free flow (Red/Orange) Overlay

mapplsMap.enableTrafficStopIcon(false); //To enable/disable Traffic Closure Overlay