@googlemaps/js-markerclusterer

    Interface Renderer

    interface Renderer {
        render(cluster: Cluster, stats: ClusterStats, map: Map): Marker;
    }

    Implemented by

    Index

    Methods

    Methods

    • Turn a Cluster into a Marker.

      Below is a simple example to create a marker with the number of markers in the cluster as a label.

      return new google.maps.Marker({
      position,
      label: String(markers.length),
      });

      Parameters

      Returns Marker

    MMNEPVFCICPMFPCPTTAAATR