@@ -321,7 +321,7 @@ public void onStyleLoaded(@NonNull Style style) {
321321 throw new IllegalArgumentException ("Unknown annotation type: " + annotationType + ", must be either 'fill', 'line', 'circle' or 'symbol'" );
322322 }
323323 }
324-
324+
325325 if (myLocationEnabled ) {
326326 enableLocationComponent (style );
327327 }
@@ -609,6 +609,15 @@ public void onError(@NonNull String message) {
609609 });
610610 break ;
611611 }
612+ case "map#updateContentInsets" : {
613+ CameraUpdate cameraUpdate = Convert .toContentPaddingCameraUpdate (call .argument ("bounds" ));
614+ if ((Boolean ) call .argument ("animated" )) {
615+ mapboxMap .animateCamera (cameraUpdate );
616+ } else {
617+ mapboxMap .moveCamera (cameraUpdate );
618+ }
619+ break ;
620+ }
612621 case "symbols#addAll" : {
613622 List <String > newSymbolIds = new ArrayList <String >();
614623 final List <Object > options = call .argument ("options" );
@@ -706,7 +715,7 @@ public void onError(@NonNull String message) {
706715 result .success (null );
707716 break ;
708717 }
709- case "line#addAll" : {
718+ case "line#addAll" : {
710719 List <String > newIds = new ArrayList <String >();
711720 final List <Object > options = call .argument ("options" );
712721 List <LineOptions > optionList = new ArrayList <LineOptions >();
@@ -778,7 +787,7 @@ public void onError(@NonNull String message) {
778787 result .success (circleId );
779788 break ;
780789 }
781- case "circle#addAll" : {
790+ case "circle#addAll" : {
782791 List <String > newIds = new ArrayList <String >();
783792 final List <Object > options = call .argument ("options" );
784793 List <CircleOptions > optionList = new ArrayList <CircleOptions >();
@@ -854,7 +863,7 @@ public void onError(@NonNull String message) {
854863 break ;
855864 }
856865
857- case "fill#addAll" : {
866+ case "fill#addAll" : {
858867 List <String > newIds = new ArrayList <String >();
859868 final List <Object > options = call .argument ("options" );
860869 List <FillOptions > optionList = new ArrayList <FillOptions >();
0 commit comments