We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const renderClusterMarker = useCallback( ( coordinates: GeoJSON.Position, pointCount: number, getLeaves: ( limit?: number, offset?: number ) => Array<React.ReactElement<MarkerProps & { children: Dictionary<ClusterPopoverProps> }> | undefined> ) => { const leaves = getLeaves(100).map(leave => leave?.props.children.props.marker as CurrentMaker) const markers = leaves.map(leave => ({ leave, ContentComponent: leave.plant ? PlantMarkerDetail : UserMarkerDetail })) return ( <Marker coordinates={coordinates} key={coordinates[0] + coordinates[1] + 1} anchor="center"> <ClusterPopover markers={markers} pointCount={pointCount} /> </Marker> ) }, [] ) <Cluster ClusterMarkerFactory={renderClusterMarker}> {currentMarkers.map((currentMarker, index) => ( <Marker key={currentMarker.plant?.PlantID ?? index} coordinates={currentMarker.coordinates} anchor="center"> <MarkerElement marker={currentMarker} bearing={bearing} ContentComponent={ContentComponent(currentMarker)} /> </Marker> ))} </Cluster>
Cluster Marker disappearing when zoom screen with 70%, 80%, I already checked the demo on the website, and it also disappear.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cluster Marker disappearing when zoom screen with 70%, 80%, I already checked the demo on the website, and it also disappear.
The text was updated successfully, but these errors were encountered: