TomTom Maps for JavaScript
    Preparing search index...

    Type Alias StandardStyle

    Configuration for a TomTom standard map style.

    Provides options to customize which modules are included and which style version to use.

    // Standard style with all default modules
    const style: StandardStyle = {
    id: 'standardLight'
    };

    // Exclude traffic modules
    const styleNoTraffic: StandardStyle = {
    id: 'standardLight',
    include: ['hillshade'] // Only include hillshade, exclude traffic
    };

    // Use specific style version
    const versionedStyle: StandardStyle = {
    id: 'standardDark',
    version: '1.0.0'
    };
    type StandardStyle = {
        id?: StandardStyleID;
        include?: StyleModule[];
        version?: string;
    }
    Index

    Properties

    Properties

    Standard style identifier.

    Determines the visual appearance of the map.

    include?: StyleModule[]

    Modules to include when loading the style.

    • Use this to selectively enable only needed modules for better performance.

    If not specified, all available modules are included by default. If an empty array is provided, no optional modules will be included.

    All available modules
    

    Available modules:

    • trafficIncidents: Real-time traffic incidents (accidents, closures)
    • trafficFlow: Real-time traffic flow visualization
    • hillshade: Terrain elevation shading
    // Include only traffic modules
    include: ['trafficIncidents', 'trafficFlow']

    // Include only hillshade
    include: ['hillshade']

    // Include no optional modules
    include: []
    version?: string

    Style version to load.

    Allows pinning to a specific style version for consistency. If not specified, uses the latest SDK-supported version.

    Latest SDK-supported version
    
    version: '1.0.0'