angular/components

bug(google-maps): missing exports for new map marker clusterer types

Bogatejc opened this issue · 0 comments

Description
It appears that the recent refactor of the Map Marker Clusterer component introduced the need to specify a Renderer and an Algorithm to customize the map marker clusterer. However, these types (Renderer, Algorithm, AlgorithmInput, AlgorithmOutput, Cluster, ClusterStats) are not currently exported in the public API file (public-api.ts), which prevents end users from fully utilizing this new feature.

Expected Behavior
As an end user, I should be able to import the Renderer and Algorithm types when customizing the marker clusterer functionality.
These types should be exported in the public-api.ts file to make them available for external use.

Current Behavior
The Renderer and Algorithm interfaces are not exported in the public API, so users are unable to implement these classes when attempting to customize the map marker clusterer.

Steps to Reproduce

  1. Try to customize the marker clusterer by specifying a custom Renderer or Algorithm.
  2. Attempt to import Renderer or Algorithm from the Angular Google Maps library.
  3. Observe that these types are not available for import, resulting in an error or limitation in customization.

Fix
Add the following line to src/google-maps/public-api.ts

export {
  Renderer,
  Algorithm,
  AlgorithmInput,
  AlgorithmOutput,
  Cluster,
  ClusterStats,
} from './map-marker-clusterer/map-marker-clusterer-types';