Skip to content

Instantly share code, notes, and snippets.

@danvk
Created January 22, 2019 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danvk/8762b6e53ff87c58344a503c78b6f475 to your computer and use it in GitHub Desktop.
Save danvk/8762b6e53ff87c58344a503c78b6f475 to your computer and use it in GitHub Desktop.
export interface Props {
 style: string | MapboxGl.Style;
 center?: [number, number];
 zoom?: [number];
 maxBounds?: MapboxGl.LngLatBounds | FitBounds;
 fitBounds?: FitBounds;
 fitBoundsOptions?: FitBoundsOptions;
 bearing?: [number];
 pitch?: [number];
 containerStyle?: React.CSSProperties;
 className?: string;
 movingMethod?: 'jumpTo' | 'easeTo' | 'flyTo';
 animationOptions?: Partial<AnimationOptions>;
 flyToOptions?: Partial<FlyToOptions>;
 children?: JSX.Element | JSX.Element[] | Array<JSX.Element | undefined>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment