new cercalia.Control.Traffic()
Extends
Members
-
staticcercalia.Control.Traffic.PoisCategories{Object.<string, Array.<string>>}
-
-
staticcercalia.Control.Traffic.SctDgtLevels{string}
-
Properties:
Name Type Default Description YELLOWstring yellow ORANGEstring orange REDstring red BLACKstring black ROADWORKSstring accident INCIDENCEstring incidences ACCIDENTstring accident
Methods
-
closePopups()
-
Close popups.
-
disable(option)
-
Disables the traffic layer option selected by parameter
Options:
cercalia.MapControls.TrafficOptions.LIVELive traffic
cercalia.MapControls.TrafficOptions.PREDICTEDPredicted traffic
cercalia.MapControls.TrafficOptions.CAMERASLive traffic cams (only Spain)
cercalia.MapControls.TrafficOptions.PKSHighway location marker
cercalia.MapControls.TrafficOptions.WORKSRoad works (only Spain)Name Type Description optionstring -
enable(option)
-
Enables the traffic layer option selected by parameter
Options:
cercalia.MapControls.TrafficOptions.LIVELive traffic
cercalia.MapControls.TrafficOptions.PREDICTEDPredicted traffic
cercalia.MapControls.TrafficOptions.CAMERASLive traffic cams (only Spain)
cercalia.MapControls.TrafficOptions.PKSHighway location marker
cercalia.MapControls.TrafficOptions.WORKSRoad works (only Spain)Name Type Description optionstring -
getClass(){string} inherited
-
Returns:
class
-
getElement(){HTMLElement} inherited
-
Obtain the control DOM element
Returns:
DOM Element
-
getGeojsonStrategy_(extent, resolution)
-
Name Type Description extentArray.<number> resolutionnumber -
getName(){string} inherited
-
Returns the control name
Returns:
Control name
-
hide() inherited
-
Hide the control
-
isTrafficOptionEnabled(option){boolean}
-
Return boolean if parameter traffic option is enabled or not. Options:
cercalia.MapControls.TrafficOptions.LIVELive traffic
cercalia.MapControls.TrafficOptions.PREDICTEDPredicted traffic
cercalia.MapControls.TrafficOptions.CAMERASLive traffic cams (only Spain)
cercalia.MapControls.TrafficOptions.PKSHighway location marker
cercalia.MapControls.TrafficOptions.WORKSRoad works (only Spain)Name Type Description optionstring -
setTopBar(idTopBar)
-
Create the button in the tools topbar
Name Type Description idTopBarstring Div element ID where the control will be embedded
-
show() inherited
-
Shows the control
-
showAffectationPopup(feature)
-
Name Type Description featureol.Feature