forked from tomekvenits/react-native-map-clustering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (37 loc) · 1.28 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare module "react-native-map-clustering" {
import * as React from "react";
import { LayoutAnimationConfig } from "react-native";
import Map, { MapViewProps, Marker } from "react-native-maps";
export type Cluster = {};
interface MapClusteringProps {
clusteringEnabled?: boolean;
spiralEnabled?: boolean;
animationEnabled?: boolean;
preserveClusterPressBehavior?: boolean;
tracksViewChanges?: boolean;
layoutAnimationConf?: LayoutAnimationConfig;
radius?: number;
maxZoom?: number;
minZoom?: number;
extent?: number;
nodeSize?: number;
minPoints?: number;
edgePadding?: { top: number; left: number; right: number; bottom: number };
clusterColor?: string;
clusterTextColor?: string;
clusterFontFamily?: string;
selectedClusterId?: string;
selectedClusterColor?: string;
spiderLineColor?: string;
superClusterRef?: React.MutableRefObject<any>;
mapRef?: (ref: React.Ref<Map>) => void;
onClusterPress?: (cluster: Marker, markers?: Marker[]) => void;
getClusterEngine?: (ref: any) => void;
onMarkersChange?: (markers?: Marker[]) => void;
renderCluster?: (cluster: any) => React.ReactNode;
}
export default class MapView extends React.Component<
MapViewProps & MapClusteringProps,
any
> {}
}