From e46021e5c37ff7330f86ede909ae268c0b2b4de3 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Sun, 9 Jan 2022 13:00:00 -0800 Subject: [PATCH] [v7] Fix AttributionControl prop typo (#1679) --- docs/api-reference/attribution-control.md | 2 +- src/components/attribution-control.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-reference/attribution-control.md b/docs/api-reference/attribution-control.md index 018bde399..df6c5f706 100644 --- a/docs/api-reference/attribution-control.md +++ b/docs/api-reference/attribution-control.md @@ -38,7 +38,7 @@ Note that the following properties are not reactive. They are only used when the Note that your attribution must adhere to Mapbox's [guidelines](https://docs.mapbox.com/help/getting-started/attribution/). -#### customAttributions: string | string[] +#### customAttribution: string | string[] String or strings to show in addition to any other attributions. diff --git a/src/components/attribution-control.ts b/src/components/attribution-control.ts index 592d66edd..859137c06 100644 --- a/src/components/attribution-control.ts +++ b/src/components/attribution-control.ts @@ -11,7 +11,7 @@ export type AttributionControlProps = { * that collapses when the map is less than 640 pixels wide. */ compact?: boolean; /** String or strings to show in addition to any other attributions. */ - customAttributions?: string | string[]; + customAttribution?: string | string[]; /** Placement of the control relative to the map. */ position?: ControlPosition; };