We had a problem with markerclustering.
When zooming in, the last cluster marker with "2" or "3" points would not disapear and when clicking on it we had a js error in console:
Cannot read properties of undefined (reading '0')

We don't know for sure if it happened after drupal 11 upgrade or geofield_map upgrade but it seems related because it was working before.

Anyway, after trying different versions of markerclusterer, using markerclustererplus did the trick for us and made markerclustering work again.

# External Marker Clusterer
marker_cluster:
  remote: https://github.com/googlemaps/js-markerclustererplus
  version: 1.2.10
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
    gpl-compatible: true
  js:
    https://unpkg.com/@googlemaps/markerclustererplus@1.2.10/dist/index.min.js: { type: external, minified: true }
  dependencies:
    - geofield_map/geofield_map_gmap_formatter

Not sure, what caused this issue maybe something wrong here, but we wanted to share that if anybody is facing the same issue

Comments

davidiio created an issue. See original summary.

  • itamair committed 26839c73 on 11.1.x
    fix: #3583951 Markerclusterer version updated to its latest 1.2.10
    
itamair’s picture

Status: Active » Fixed

thanks @davidiio, great catch!
Your fix already committed and deployed into the new Geofield Map 11.1.8 release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.