This is the documentation of version 1.0.0-rc.1. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias StandardStyle

    A TomTom standard map style, with the style parts it includes.

    // Standard style with every style part
    const style: StandardStyle = {
    id: 'streetLight'
    };

    // Leave the traffic parts out
    const styleNoTraffic: StandardStyle = {
    id: 'streetLight',
    include: ['terrain']
    };
    type StandardStyle = {
        id?: StandardStyleID;
        include?: StylePart[];
    }
    Index

    The standard style ID, which sets the map's look.

    include?: StylePart[]

    Which StyleParts to load. Leave it out to load every part, or pass [] to load none.

    All style parts