Example for implementing MarkerClusterer

Is there a good example for implementing MarkerClusterer in Algolia or can you give me pointers?

  • I followed this tutorial: Geo Search | Building Search UI | Guide | Algolia Documentation for doing a map, then tried to add MapClusterer.
  • I found other examples with MapClusterer that don’t use Algolia that use this code: var markerCluster = new MarkerClusterer(map, hits);, but I don’t know where to put this in the airports example code.

I am looking for a JavaScript example.