Traffic information | RasterJS API | 2GIS Documentation

Traffic information

Creates a layer with information about traffic jams. When you hover over a section of a road, it displays additional meta-information.

Creation

Factory Usage Description
DG.Traffic( <DG.Traffic options> options? ) DG.Traffic(…) Creates a traffic jams layer.

Options

Option Type Default Description
disableLabel Boolean false If you send the value= true, then, when you hover over a section of a road, the additional information will not be displayed.