Map Kit is implemented by simulating a camera. The map camera area centers on the target location and will be padded. Map controls (such as the compass, zoom icons, and my-location icon) are placed at the border of the map camera area. By default, the compass is placed in the upper right corner of the map camera area, and the zoom icons and my-location icon are placed in the lower right corner of the map camera area.
You can use the HuaweiMap.setPadding(int left, int top, int right, int bottom) method to set the padding between the map camera area bounds and map controls. Input parameters of the method are as follows:
Figure 1 and Figure 2 show the default and custom map padding effects, respectively.