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

    Function fillStyledGeometryConfig

    • Config that draws each polygon by its own fill style, optionally coloured from a palette.

      Its expressions read each feature's fillStyle property. It draws the border labels too, and puts the layers below the map's labels unless beforeLayerConfig says otherwise.

      Reachable ranges have their own module, ReachableRangesModule, drawn in these styles too.

      Parameters

      Returns GeometriesModuleConfig

      const zones = await GeometriesModule.create(map, fillStyledGeometryConfig({ palette: ['#e63312', '#1d3f8a'] }));