createVehicleRestrictionIconWithIconProperties method
- VehicleRestrictionIconProperties properties,
- MapScheme mapScheme,
- IconProviderAssetType assetType,
- Size2D sizeConstraintsInPixels,
- IconProviderCallback callback,
Creates an image representing a vehicle restriction as shown on the map.
In case when VehicleRestriction object specifies multiple types of restrictions, then the icon is generated for the first one according to the following priority: VehicleRestriction.restriction, VehicleRestriction.axleCount, VehicleRestriction.axleCountInGroup, VehicleRestriction.hazmatRestriction, VehicleRestriction.trailerCount.
properties The properties of a restriction icon to be created.
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 createVehicleRestrictionIconWithIconProperties(
VehicleRestrictionIconProperties properties,
MapScheme mapScheme,
IconProviderAssetType assetType,
Size2D sizeConstraintsInPixels,
IconProviderCallback callback) {
_createVehicleRestrictionIconWithIconProperties(
properties, mapScheme, assetType, sizeConstraintsInPixels, callback);
}