additionalOptions property

Map<String, String> additionalOptions
read / write

Static informations that should replace placeholders in the urlTemplate. Applying API keys is a good example on how to use this parameter.

Example:


TileLayerOptions(
    urlTemplate: "https://api.tiles.mapbox.com/v4/"
                 "{id}/{z}/{x}/{y}@2x.png?access_token={accessToken}",
    additionalOptions: {
        'accessToken': '<PUT_ACCESS_TOKEN_HERE>',
         'id': 'mapbox.streets',
    },
),

Implementation

Map<String, String> additionalOptions;