Skip to content

Commit f85c9fa

Browse files
committed
chore: project definition
1 parent 1ebeeec commit f85c9fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mapbox.common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ export interface MapboxApi {
684684
addImage(imageId: string, image: string, nativeMap?: any): Promise<void>;
685685

686686
removeImage(imageId: string, nativeMap?: any): Promise<void>;
687+
project(data: LatLng): { x: number; y: number };
687688
}
688689

689690
// ------------------------------------------------------------
@@ -1034,6 +1035,9 @@ export abstract class MapboxViewCommonBase extends ContentView implements Mapbox
10341035
onDestroy(nativeMap?: any): Promise<any> {
10351036
return this.mapbox && this.mapbox.onDestroy(this.getNativeMapView());
10361037
}
1038+
project(data: LatLng) {
1039+
return this.mapbox && this.mapbox.project(data);
1040+
}
10371041
}
10381042

10391043
// -----------------------------------------------------------------

0 commit comments

Comments
 (0)