From 499e99a8c59e06b0387f84321bc89940d224abb0 Mon Sep 17 00:00:00 2001 From: Benedict Strube Date: Fri, 4 Feb 2022 23:21:02 +0100 Subject: [PATCH] fix(`updateSource`): `updateSource` method was missing in the API Added `updateSource` method that was already implemented to the API definition. --- src/ui-mapbox/common.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui-mapbox/common.ts b/src/ui-mapbox/common.ts index e64fba1..946c718 100755 --- a/src/ui-mapbox/common.ts +++ b/src/ui-mapbox/common.ts @@ -629,6 +629,7 @@ export interface MapboxApi { trackUser(options: TrackUserOptions, nativeMap?: any): Promise; addSource(id: string, options: AddSourceOptions, nativeMapView?: any): Promise; + updateSource(id: string, options: UpdateSourceOptions, nativeMapView?: any): Promise; removeSource(id: string, nativeMap?: any): Promise; @@ -829,6 +830,8 @@ export interface MapboxViewApi { addSource(id: string, options: AddSourceOptions): Promise; + updateSource(id: string, options: UpdateSourceOptions): Promise; + removeSource(id: string, nativeMap?: any): Promise; addLayer(style, belowLayerId?: string): Promise;