Map Marker Cluster View
Map Marker Cluster View can be placed as a child of Map Marker Cluster to render a custom view to show in place of the markers
How to use
Section titled “How to use”This component acts like a View and accepts any other component to be its child and renders that in the place of the markers for the marker cluster.
Any components nested inside will have access to a variable named markerCount which indicates the number of markers within that cluster and can be passed to a Text component, for instance.
In the screenshot above, I’ve used a star Icon to represent the cluster and the count is rendered in a Text component.
Style Properties
Section titled “Style Properties”Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.
Configuration Properties
Section titled “Configuration Properties”| Property | Description |
|---|---|
| Component name | The name of the component as it appears in the Screen’s component tree |
| Zoom on press | Whether to zoom into a cluster (displaying it’s markers) when pressed |
Data Properties
Section titled “Data Properties”Conditional Display
Section titled “Conditional Display”You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.
Triggers
Section titled “Triggers”| Trigger | Description |
|---|---|
| On Press | Runs the Actions when the element is pressed |