-
-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds getClusterChildren for iOS and Android #1495
Conversation
@ferdicus Hello! Could someone take a look, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me! 👍
@mfazekas Hello! Are you planning to release the next ver of the library in the short term? We really need this functionality. Thank you in advance ) |
Will be releasing a new version on friday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏿
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *manager, NSDictionary<NSNumber*, UIView*> *viewRegistry) { | ||
RCTMGLShapeSource* shapeSource = (RCTMGLShapeSource *)viewRegistry[reactTag]; | ||
|
||
NSArray<id<MGLFeature>> *shapes = [sтвhapeSource getClusterChildren: clusterId]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some typo snuck in there 😅
https://github.com/react-native-mapbox-gl/maps/releases/tag/8.3.0 |
Description
Adds
getClusterChildren
method toShapeSource
that allows you to retrieve the features from a cluster by the cluster's ID. (on the next zoom level)Features may include nested clusters as well.
Checklist
yarn generate
CHANGELOG.md
index.d.ts
)/example
)Screenshot OR Video