Skip to content

Commit ac43e41

Browse files
committed
feat: ClusteredVectorLayer expandCluster
1 parent 707ea30 commit ac43e41

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/layers/vector.android.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,8 @@ export class ClusteredVectorLayer extends BaseVectorLayer<com.carto.layers.Clust
389389
nativeGetterName: 'isAnimatedClusters',
390390
})
391391
animatedClusters: boolean;
392+
393+
expandCluster(element: VectorElement<any, any>, px: number) {
394+
this.getNative().expandCluster(element.getNative(), px);
395+
}
392396
}

src/layers/vector.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,5 @@ export class ClusteredVectorLayer extends BaseVectorLayer<any, ClusteredVectorLa
179179
minimumClusterDistance?: number;
180180
maximumClusterZoom?: number;
181181
animatedClusters?: boolean;
182+
expandCluster(element: VectorElement<any, any>, px: number);
182183
}

src/layers/vector.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,8 @@ export class ClusteredVectorLayer extends BaseVectorLayer<NTClusteredVectorLayer
301301
nativeGetterName: 'isAnimatedClusters',
302302
})
303303
animatedClusters: boolean;
304+
305+
expandCluster(element: VectorElement<any, any>, px: number) {
306+
this.getNative().expandClusterPx(element.getNative(), px);
307+
}
304308
}

0 commit comments

Comments
 (0)