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...

    Function toPlaces

    • Turns any of the shapes PlacesModule.show accepts into one Places collection.

      Parameters

      Returns Places

      A shown-features handler receives the input of show() as it was given, in any of those shapes.

      places.events.on('shown-features', (shown) => {
      if ('places' in shown) renderResultList(toPlaces(shown.places).features);
      });