代码
import {BaiduMapConfig, BaiduVectorTileProvider, Engine} from '@baidumap/mapv-three';

BaiduMapConfig.ak = '您的密钥';

const container = document.getElementById('map');
// 窄屏时拉远镜头,让中国东西两侧都进入视野。
const aspect = container.clientWidth / container.clientHeight;

new Engine(container, {
  map: {
    projection: 'EPSG:4326',
    center: [104, 35],
    pitch: 0,
    range: 12_000_000 / Math.min(1.5, aspect),
    provider: new BaiduVectorTileProvider(),
  },
});

从中国上空俯视百度矢量底图,观察经纬度按等间距排列时的地图形状。

预览