summaryrefslogtreecommitdiff
path: root/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts')
-rw-r--r--node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts57
1 files changed, 57 insertions, 0 deletions
diff --git a/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts b/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts
new file mode 100644
index 0000000..88a5ff4
--- /dev/null
+++ b/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts
@@ -0,0 +1,57 @@
+import React, { CSSProperties, SVGProps } from 'react';
+import { PigeonProps, Point } from '../types';
+interface GeoJsonProps extends PigeonProps {
+ className?: string;
+ data?: any;
+ svgAttributes?: any;
+ styleCallback?: any;
+ hover?: any;
+ feature?: any;
+ style?: CSSProperties;
+ children?: React.ReactNode;
+ onClick?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onContextMenu?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOver?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOut?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+}
+interface GeoJsonLoaderProps extends GeoJsonProps {
+ link?: string;
+}
+interface GeoJsonGeometry {
+ type: string;
+ coordinates?: [number, number] | Array<[number, number]> | Array<Array<[number, number]>> | Array<Array<Array<[number, number]>>>;
+ geometries?: Array<GeoJsonGeometry>;
+}
+interface GeometryProps {
+ coordinates?: [number, number] | Array<[number, number]> | Array<Array<[number, number]>> | Array<Array<Array<[number, number]>>>;
+ latLngToPixel?: (latLng: Point, center?: Point, zoom?: number) => Point;
+ svgAttributes?: SVGProps<SVGElement>;
+ geometry?: GeoJsonGeometry;
+}
+export declare function PointComponent(props: GeometryProps): JSX.Element;
+export declare function MultiPoint(props: GeometryProps): JSX.Element;
+export declare function LineString(props: GeometryProps): JSX.Element;
+export declare function MultiLineString(props: GeometryProps): JSX.Element;
+export declare function Polygon(props: GeometryProps): JSX.Element;
+export declare function MultiPolygon(props: GeometryProps): JSX.Element;
+export declare function GeometryCollection(props: GeometryProps): JSX.Element;
+export declare function GeoJsonFeature(props: GeoJsonProps): JSX.Element;
+export declare function GeoJson(props: GeoJsonProps): JSX.Element;
+export declare function GeoJsonLoader(props: GeoJsonLoaderProps): JSX.Element;
+export {};