mirror of https://gitee.com/antv-l7/antv-l7
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
import { Scale, Zoom, Scene } from '@antv/l7';
|
|
import { Mapbox } from '@antv/l7-maps';
|
|
const scene = new Scene({
|
|
id: 'map',
|
|
map: new Mapbox({
|
|
style: 'light',
|
|
pitch: 0,
|
|
center: [107.054293, 35.246265],
|
|
zoom: 4.056,
|
|
}),
|
|
});
|
|
|
|
const zoomControl = new Zoom();
|
|
const scaleControl = new Scale();
|
|
scene.addControl(zoomControl);
|
|
scene.addControl(scaleControl);
|