Hierarchy

  • BaseMapProps
    • USStateMapProps

Properties

getFillColor?: ((regionId: string) => string)

Type declaration

    • (regionId: string): string
    • Function that returns the fill color for a region's shape, given the region's regionId.

      Returns

      Fill color for the region.

      Parameters

      • regionId: string

        RegionId of the region for which to get the fill color.

      Returns string

getRegionUrl?: ((regionId: string) => undefined | string)

Type declaration

    • (regionId: string): undefined | string
    • Function that returns the regionUrl for the region corresponding to a given regionId.

      Default

      undefined

      Returns

      Region URL for the region.

      Parameters

      • regionId: string

        RegionId of the region for which to get the regionUrl.

      Returns undefined | string

getTooltip: ((regionId: string) => ReactNode)

Type declaration

    • (regionId: string): ReactNode
    • Function that returns tooltip content for the region corresponding to a given regionId.

      Returns

      Tooltip content for the region.

      Parameters

      • regionId: string

        RegionId of the region for which to get tooltip content.

      Returns ReactNode

highlightedRegion?: Region

Region to highlight on the map by rendering the shape with an outline.

showBorderingStates?: boolean

Show the shapes of the bordering states.

Default

true

showCounties?: boolean

Show the county shapes.

Default

true

stateRegionId: string

RegionId of the state being mapped.

width?: number

Width of the SVG containing the map.

Generated using TypeDoc