createVehicleRestrictionIcon method

void createVehicleRestrictionIcon(
  1. PickVehicleRestrictionsResult pickingResult,
  2. MapScheme mapScheme,
  3. IconProviderAssetType assetType,
  4. Size2D sizeConstraintsInPixels,
  5. IconProviderCallback callback,
)

Creates an image representing a vehicle restriction as shown on the map, based on map content picking result.

pickingResult The result of picking vehicle restrictions.

mapScheme The map scheme for which the vehicle restriction icon should be created.

assetType The asset type for which the vehicle restriction icon should be created.

sizeConstraintsInPixels The maximum width and height of the icon in pixels. The values are capped to a maximum of 4096 pixels. The image will be created as large as possible within the width and height constraints while maintaining the aspect ratio. If either width or height is set to 0, it will be calculated automatically based on icon's aspect ratio.

callback The callback which is used to return the created image along with a description of the icon based on the type of road and/or place it is used, or an error code.

Implementation

void createVehicleRestrictionIcon(
    PickVehicleRestrictionsResult pickingResult,
    MapScheme mapScheme,
    IconProviderAssetType assetType,
    Size2D sizeConstraintsInPixels,
    IconProviderCallback callback) {
  _createVehicleRestrictionIconWithPickResult(
      pickingResult, mapScheme, assetType, sizeConstraintsInPixels, callback);
}