Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type Aliases

MapFactory: ((marker: MapMarkerFactory[], markerClicked: ((location: string) => void), popupFactory?: PopupFactory) => JSX.Element)

Type declaration

    • Parameters

      • marker: MapMarkerFactory[]
      • markerClicked: ((location: string) => void)
          • (location: string): void
          • Parameters

            • location: string

            Returns void

      • Optional popupFactory: PopupFactory

      Returns JSX.Element

MapMarkerFactory: ((component: JSX.Element, callback: ((name: string) => void), image: Leaflet.Icon) => JSX.Element)

Type declaration

    • (component: JSX.Element, callback: ((name: string) => void), image: Leaflet.Icon): JSX.Element
    • Parameters

      • component: JSX.Element
      • callback: ((name: string) => void)
          • (name: string): void
          • Parameters

            • name: string

            Returns void

      • image: Leaflet.Icon

      Returns JSX.Element

PopupFactory: ((closePopup: (() => void)) => React.ReactNode)

Type declaration

    • (closePopup: (() => void)): React.ReactNode
    • Parameters

      • closePopup: (() => void)
          • (): void
          • Returns void

      Returns React.ReactNode

Variables

DEFAULT_ZOOM: 12 = 12

Functions

  • createMapFactory(mapCentre: [number, number]): MapFactory
  • default(__namedParameters: MapProps): JSX.Element
  • A component for displaying a Leaflet map and markers for popups for locations where weather data is being tracked.

    component

    Parameters

    Returns JSX.Element

Generated using TypeDoc