diff --git a/packages/component/src/control/BaseControl.ts b/packages/component/src/control/BaseControl.ts index 4f61dcee19..197de0948e 100644 --- a/packages/component/src/control/BaseControl.ts +++ b/packages/component/src/control/BaseControl.ts @@ -44,7 +44,7 @@ export default class Control extends EventEmitter { name: `${controlId++}`, }; } - public setPosition(position: PositionName) { + public setPosition(position: PositionName = "bottomright") { // 考虑组件的自动布局,需要销毁重建 const controlService = this.controlService; if (controlService) { diff --git a/packages/maps/src/mapbox/map.ts b/packages/maps/src/mapbox/map.ts index 46a545c35c..6ff0e7e5dc 100644 --- a/packages/maps/src/mapbox/map.ts +++ b/packages/maps/src/mapbox/map.ts @@ -40,7 +40,7 @@ import { MapTheme } from './theme'; let mapdivCount = 0; const LNGLAT_OFFSET_ZOOM_THRESHOLD = 12; const MAPBOX_API_KEY = - 'pk.eyJ1IjoibHp4dWUiLCJhIjoiYnhfTURyRSJ9.Ugm314vAKPHBzcPmY1p4KQ'; + 'pk.eyJ1IjoibHp4dWUiLCJhIjoiY2tvaWZuM2s4MWZuYjJ1dHI5ZGduYTlrdiJ9.DQCfMRbZzx0VSwecQ69McA'; /** * AMapService */