This is the documentation of version 0.59.0. Go to the latest version, 1.0.0-rc.5.
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.

    // 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
    };
    type StandardStyle = {
        id?: StandardStyleID;
        include?: StyleModule[];
    }
    Index

    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 data, for hillshade shading and 3D terrain
    // Include only traffic modules
    include: ['trafficIncidents', 'trafficFlow']

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

    // Include no optional modules
    include: []