Fix for map cluster size icons not disappearing after zoom

Normally zooming on a cluster icon far enough to show individual pins
should also hide the cluster icon. Some time recently this stopped
happening, which is disruptive because the cluster icon could hide
pins underneath and make them unreachable, and confusing because it
gave the impression there would be more pins if you keep zooming.

It seems likely that some maps API update introduced a collision with
the 'remove' method. Renaming the method was found to fix the bug.

Repro: https://screencast.googleplex.com/cast/NjMyNzQ5NTc2NTc4NjYyNHwxNDRkMmMyYS0xYQ
Fix: https://screencast.googleplex.com/cast/NTM3NzQ1MDc0NDc0MTg4OHwwNDcxY2NjYi04ZA

Fixes: b/493541353
Change-Id: I52d852c7ab68230bbcfdd1d6efcfedaceafc544a
Reviewed-on: https://gnocchi-internal-review.git.corp.google.com/c/third_party/@google/markerclusterer/+/297685
Reviewed-by: Hughes Hilton <hugheshilton@google.com>
1 file changed
tree: 0f5d56d39145c23efe00f3ee002ba24f8a87fa99
  1. src/
  2. LICENSE
  3. METADATA
  4. package.json
  5. README.md
README.md

MarkerClusterer for Google Maps v3

Description

Creates and manages per-zoom-level clusters for large amounts of markers.

NPM

Available via NPM as the package @google/markerclusterer

Read more

Support

This library is community supported. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it.

If you find a bug, or have a feature suggestion, please log an issue. If you'd like to contribute, please read How to Contribute.