Skip to content
You're viewing documentation for Draftbit Classic (v1), our previous platform. See the current Draftbit docs.

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

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 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.

PropertyDescription
Component nameThe name of the component as it appears in the Screen’s component tree
Zoom on pressWhether to zoom into a cluster (displaying it’s markers) when pressed

You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.

TriggerDescription
On PressRuns the Actions when the element is pressed