@@ -612,9 +612,9 @@ export interface MapboxApi {
612
612
613
613
removeSource ( id : string , nativeMap ?: any ) : Promise < any > ;
614
614
615
- addLayer ( style , nativeMapView ?: any ) : Promise < any > ;
615
+ addLayer ( style , belowLayerId ?: string , nativeMapView ?: any ) : Promise < any > ;
616
616
617
- addLayer ( options : AddLayerOptions ) : Promise < any > ;
617
+ addLayer ( options : AddLayerOptions , belowLayerId ?: string ) : Promise < any > ;
618
618
619
619
removeLayer ( id : string , nativeMapView ?: any ) : Promise < any > ;
620
620
@@ -750,9 +750,9 @@ export interface MapboxViewApi {
750
750
removeMarkers ( options ?: any ) : Promise < any > ;
751
751
752
752
queryRenderedFeatures ( options : QueryRenderedFeaturesOptions ) : Promise < Feature [ ] > ;
753
-
753
+
754
754
querySourceFeatures ( sourceId : string , options ?: QuerySourceFeaturesOptions ) : Promise < Feature [ ] > ;
755
-
755
+
756
756
setOnMapClickListener ( listener : ( data : LatLng ) => boolean ) : Promise < any > ;
757
757
758
758
setOnMapLongClickListener ( listener : ( data : LatLng ) => boolean ) : Promise < any > ;
@@ -803,7 +803,7 @@ export interface MapboxViewApi {
803
803
804
804
removeSource ( id : string , nativeMap ?: any ) : Promise < any > ;
805
805
806
- addLayer ( style ) : Promise < any > ;
806
+ addLayer ( style , belowLayerId ?: string ) : Promise < any > ;
807
807
808
808
removeLayer ( id : string ) : Promise < any > ;
809
809
@@ -961,8 +961,8 @@ export abstract class MapboxViewCommonBase extends ContentView implements Mapbox
961
961
removeSource ( id : string ) : Promise < any > {
962
962
return this . mapbox . removeSource ( id , this . getNativeMapView ( ) ) ;
963
963
}
964
- addLayer ( style ) : Promise < any > {
965
- return this . mapbox . addLayer ( style , this . getNativeMapView ( ) ) ;
964
+ addLayer ( style , belowLayerId ?: string ) : Promise < any > {
965
+ return this . mapbox . addLayer ( style , belowLayerId , this . getNativeMapView ( ) ) ;
966
966
}
967
967
removeLayer ( id : string ) : Promise < any > {
968
968
return this . mapbox . removeLayer ( id , this . getNativeMapView ( ) ) ;
0 commit comments