Fix binding with the new MarkerClusterer from @googlemaps/markerclusterer

This commit is contained in:
danix89
2022-11-17 20:18:55 +01:00
parent ae2985f9b1
commit f4c53d2012

View File

@@ -37,11 +37,7 @@ export default buildComponent({
} }
return MarkerClusterer; return MarkerClusterer;
}, },
ctrArgs: ({map, ...otherOptions}) => [{ ctrArgs: ({map, ...otherOptions}) => [{map, ...otherOptions}],
map,
algorithm: otherOptions.algorithm,
renderer: otherOptions.renderer,
}],
afterCreate(inst) { afterCreate(inst) {
const reinsertMarkers = () => { const reinsertMarkers = () => {
const oldMarkers = inst.getMarkers(); const oldMarkers = inst.getMarkers();