Merge pull request #679 from antvis/shihui_fix

fix: change mapbox token
This commit is contained in:
@thinkinggis 2021-05-14 14:45:11 +08:00 committed by GitHub
commit aa587a814c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export default class Control extends EventEmitter {
name: `${controlId++}`, name: `${controlId++}`,
}; };
} }
public setPosition(position: PositionName) { public setPosition(position: PositionName = "bottomright") {
// 考虑组件的自动布局,需要销毁重建 // 考虑组件的自动布局,需要销毁重建
const controlService = this.controlService; const controlService = this.controlService;
if (controlService) { if (controlService) {

View File

@ -40,7 +40,7 @@ import { MapTheme } from './theme';
let mapdivCount = 0; let mapdivCount = 0;
const LNGLAT_OFFSET_ZOOM_THRESHOLD = 12; const LNGLAT_OFFSET_ZOOM_THRESHOLD = 12;
const MAPBOX_API_KEY = const MAPBOX_API_KEY =
'pk.eyJ1IjoibHp4dWUiLCJhIjoiYnhfTURyRSJ9.Ugm314vAKPHBzcPmY1p4KQ'; 'pk.eyJ1IjoibHp4dWUiLCJhIjoiY2tvaWZuM2s4MWZuYjJ1dHI5ZGduYTlrdiJ9.DQCfMRbZzx0VSwecQ69McA';
/** /**
* AMapService * AMapService
*/ */