mirror of https://gitee.com/antv-l7/antv-l7
20 lines
389 B
JavaScript
20 lines
389 B
JavaScript
import { Scene } from '@l7/scene';
|
|
import { Scale, Zoom } from '@l7/component';
|
|
const scene = new Scene({
|
|
id: 'map',
|
|
pitch: 0,
|
|
type: 'mapbox',
|
|
style: 'light',
|
|
center: [-97.119140625, 38.75408327579141],
|
|
zoom: 2,
|
|
});
|
|
|
|
const zoomControl = new Zoom();
|
|
const scaleControl = new Scale({
|
|
position:'rightbottom',
|
|
});
|
|
scene.addControl(zoomControl);
|
|
scene.addControl(scaleControl);
|
|
|
|
|