Skip to content

Commit cbd06d0

Browse files
author
Konrad Gorski
committed
fix: not existing cluster algorithms
1 parent e4d57d6 commit cbd06d0

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

packages/react-google-maps-api/src/components/addons/GoogleMarkerClusterer.stories.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
import { ComponentStory, ComponentMeta } from '@storybook/react'
3-
import { GoogleMap, MarkerF , GoogleMapsMarkerClusterer as gm } from '../..'
2+
import { GoogleMap, MarkerF, GoogleMapsMarkerClusterer as gm } from '../..'
43
import GoogleMarkerClusterer from './GoogleMarkerClusterer'
54

6-
7-
const { DBScanAlgorithm, GridAlgorithm, KmeansAlgorithm, NoopAlgorithm } = gm
5+
const { GridAlgorithm, NoopAlgorithm } = gm
86

97
const mapContainerStyle = {
108
height: '400px',
@@ -54,7 +52,11 @@ const Template: ComponentStory<typeof GoogleMarkerClusterer> = (args) => {
5452
<GoogleMarkerClusterer {...args}>
5553
{(clusterer) =>
5654
locations.map((location) => (
57-
<MarkerF key={createKey(location)} position={location} clusterer={clusterer} />
55+
<MarkerF
56+
key={createKey(location)}
57+
position={location}
58+
clusterer={clusterer}
59+
/>
5860
)) as any
5961
}
6062
</GoogleMarkerClusterer>
@@ -64,21 +66,11 @@ const Template: ComponentStory<typeof GoogleMarkerClusterer> = (args) => {
6466

6567
export const Default = Template.bind({})
6668

67-
export const DBScan = Template.bind({})
68-
DBScan.args = {
69-
options: { algorithm: new DBScanAlgorithm({}) },
70-
}
71-
7269
export const Grid = Template.bind({})
7370
Grid.args = {
7471
options: { algorithm: new GridAlgorithm({ maxDistance: 40000 }) },
7572
}
7673

77-
export const Kmeans = Template.bind({})
78-
Kmeans.args = {
79-
options: { algorithm: new KmeansAlgorithm({ numberOfClusters: 10 }) },
80-
}
81-
8274
export const Noop = Template.bind({})
8375
Noop.args = {
8476
options: { algorithm: new NoopAlgorithm({}) },

0 commit comments

Comments
 (0)