Skip to content

Commit de23e3a

Browse files
committed
feat: ClusteredVectorLayer expandCluster
1 parent 7d823bc commit de23e3a

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
@@ -401,4 +401,8 @@ export class ClusteredVectorLayer extends BaseVectorLayer<com.carto.layers.Clust
401401
nativeGetterName: 'isAnimatedClusters',
402402
})
403403
animatedClusters: boolean;
404+
405+
expandCluster(element: VectorElement<any, any>, px: number) {
406+
this.getNative().expandCluster(element.getNative(), px);
407+
}
404408
}

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
@@ -296,4 +296,8 @@ export class ClusteredVectorLayer extends BaseVectorLayer<NTClusteredVectorLayer
296296
nativeGetterName: 'isAnimatedClusters',
297297
})
298298
animatedClusters: boolean;
299+
300+
expandCluster(element: VectorElement<any, any>, px: number) {
301+
this.getNative().expandClusterPx(element.getNative(), px);
302+
}
299303
}

0 commit comments

Comments
 (0)