Mapbox Route Shield Api
A class that can be used to request route shields using either BannerComponents.imageBaseUrl or BannerComponents.mapboxShield. The class exposes API(s) that one can invoke to either always use mapbox legacy shields BannerComponents.imageBaseUrl or use mapbox designed shields BannerComponents.mapboxShield. In cases where API is unable to download mapbox designed shields for any reason, the API falls back to download legacy shields if available. Returns error otherwise.
MapboxRouteShieldApi returns route shield with text in the form of a SVG wrapped in a ByteArray. Since this SVG would later have to be converted to vector drawable at runtime for rendering purposes, it is important to note that the API supports most of the SVG features from Tiny SVG 1.2.