Skip to content

Commit 499e99a

Browse files
fix(updateSource): updateSource method was missing in the API
Added `updateSource` method that was already implemented to the API definition.
1 parent e6c89b9 commit 499e99a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui-mapbox/common.ts

+3
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ export interface MapboxApi {
629629
trackUser(options: TrackUserOptions, nativeMap?: any): Promise<void>;
630630

631631
addSource(id: string, options: AddSourceOptions, nativeMapView?: any): Promise<any>;
632+
632633
updateSource(id: string, options: UpdateSourceOptions, nativeMapView?: any): Promise<any>;
633634

634635
removeSource(id: string, nativeMap?: any): Promise<any>;
@@ -829,6 +830,8 @@ export interface MapboxViewApi {
829830

830831
addSource(id: string, options: AddSourceOptions): Promise<any>;
831832

833+
updateSource(id: string, options: UpdateSourceOptions): Promise<any>;
834+
832835
removeSource(id: string, nativeMap?: any): Promise<any>;
833836

834837
addLayer(style, belowLayerId?: string): Promise<any>;

0 commit comments

Comments
 (0)