Fix binding with the new MarkerClusterer from @googlemaps/markerclusterer
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user