Skip to content

Commit 20fee40

Browse files
authored
Merge pull request #68 from benedictstrube/fix-update-source
fix(`updateSource`): `updateSource` method was missing in the API
2 parents 44c51f7 + 499e99a commit 20fee40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui-mapbox/common.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ export interface MapboxApi {
630630
trackUser(options: TrackUserOptions, nativeMap?: any): Promise<void>;
631631

632632
addSource(id: string, options: AddSourceOptions, nativeMapView?: any): Promise<any>;
633+
633634
updateSource(id: string, options: UpdateSourceOptions, nativeMapView?: any): Promise<any>;
634635

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

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

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

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

0 commit comments

Comments
 (0)