The MapQuest-GL map can be instantiated with an options object as the third argument in the map constructor.
Any of the following values may be provided.
The bearing or rotation in degrees to be applied to the map.
A Lng,Lat array to be used as the map's center.
The pitch or tilt in degrees to be applied to the map.
The initial zoom level of the map.
The minimum zoom level the map can support.
The maximum zoom level the map can support.
The padding to be applied to generated points and shapes when the fitBounds
function is
called.
Specifies whether the MapQuest Open APIs should be used for the map.
Refer to the geocoding control documentation for more information.
An object describing traffic configuration.
Accepted values are:
Accepted filter
values are:
An object describing direction layer ribbons and markers.
color: A string hex code of the color of the route. The showTraffic boolean must be set to false for this color to appear. Default is '#022853'.
opacity: A number that controls the opacity of the route ribbon. Default is 0.6.
showTraffic: A boolean that controls if traffic is rendered along the route. Overrides the color option if set to true. Default is true.
trafficRibbonColors: An object containing any of the following key value options: low, medium, high, and closed.
low: The string hex code for the low congestion color of the traffic ribbon. Default is '#1ca747'.
medium: The string hex code for the medium congestion color of the traffic ribbon. Default is '#feeb41'.
high: The string hex code for the high congestion color of the traffic ribbon. Default is '#df0021'.
closed: The string hex code for the closed color of the traffic ribbon. Default is '#0c0000'.
weight: The width of the ribbon. Default is 6.
The Icons API resource for the start marker.
The Icons API resource for the end marker.
The Icons API resource for the via markers.
Array of scale bar identifiers to be added to the map.
Accepted values are:
The style to be applied to the map.
Accepted values are: