Closed (fixed)
Project:
Geofield Map
Version:
11.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2026 at 14:29 UTC
Updated:
24 Apr 2026 at 07:05 UTC
Jump to comment: Most recent
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
Comment #3
itamair commentedthanks @davidiio, great catch!
Your fix already committed and deployed into the new Geofield Map 11.1.8 release.