getRoadComponentsShields
The function requests mapbox designed road shields (if available) using RoadComponent.shield's MapboxShield.baseUrl for the current road. If for any reason the API is unable to download the shield, it falls back to download and return the legacy shield using RoadComponent.imageBaseUrl. Returns error otherwise.
The function returns list of RouteShieldResult or RouteShieldError in RouteShieldCallback.onRoadShields.
To convert the returned in RouteShield SVG ByteArray to a Bitmap use RouteShield.toBitmap.
Parameters
list of RoadComponent objects
Mapbox user account name
style id used to render the map
invoked with appropriate result
See also
The function requests mapbox designed road shields (if available) using RoadComponent.shield's MapboxShield.baseUrl for the current road. If for any reason the API is unable to download the shield, it falls back to download and return the legacy shield using RoadComponent.imageBaseUrl. Returns error otherwise.
The function returns list of RouteShieldResult or RouteShieldError in RouteShieldCallback.onRoadShields.
To convert the returned in RouteShield SVG ByteArray to a Bitmap use RouteShield.toBitmap.
Parameters
list of RoadComponent objects
Mapbox user account name
style id used to render the map
font configuration for MapboxShield.displayRef rendering. Config is ignored in case of fallback to legacy shields.
invoked with appropriate result