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

    Type Alias ExtraFeatureProp<P>

    ExtraFeatureProp: FeaturePropValue | ((place: Place<P>) => FeaturePropValue)

    An entry of PlacesModuleConfig.extraFeatureProps: a fixed value written onto every place feature, or a function computing one per place.

    Type Parameters

    • P extends CommonPlaceProps = CommonPlaceProps

      The place properties the callbacks receive. Name it on the config (PlacesModuleConfig<MyPlaceProps>) to have callbacks typed for the places you show.