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

    Function buildPlaceTitle

    • The label PlacesModule gives a place when PlaceLabelConfig.title is not a function: the POI name, else the free-form address.

      Parameters

      Returns string

      // Brand first, the default label otherwise
      const places = await PlacesModule.create(map, {
      label: { title: (place) => place.properties.poi?.brands?.[0] ?? buildPlaceTitle(place) },
      });