This commit is contained in:
thinkinggis 2019-04-19 11:51:22 +08:00
parent f4f63c48b1
commit 3ce76c93c1
1 changed files with 23 additions and 23 deletions

View File

@ -1,25 +1,25 @@
import { expect } from 'chai';
import {Scene} from '../../../../src/core/scene';
import TileLayer from '../../../../src/layer/tile/tileLayer';
// import { expect } from 'chai';
// import {Scene} from '../../../../src/core/scene';
// import TileLayer from '../../../../src/layer/tile/tileLayer';
describe('tile layer', function() {
// describe('tile layer', function() {
const amapscript = document.createElement('script');
amapscript.type = 'text/javascript';
amapscript.src = 'https://webapi.amap.com/maps?v=1.4.8&key=15cd8a57710d40c9b7c0e3cc120f1200&plugin=Map3D';
document.body.appendChild(amapscript);
const div = document.createElement('div');
div.id = 'map';
div.style.cssText = 'width:500px;height:500px;position:absolute';
document.body.appendChild(div);
const scene = new Scene({
id: 'map',
mapStyle: 'light', // 样式URL
center: [ 120.19382669582967, 30.258134 ],
pitch: 0,
zoom: 2,
maxZoom: 20,
minZoom: 0
});
// const TileLayer = new TileLayer(null, {});
});
// const amapscript = document.createElement('script');
// amapscript.type = 'text/javascript';
// amapscript.src = 'https://webapi.amap.com/maps?v=1.4.8&key=15cd8a57710d40c9b7c0e3cc120f1200&plugin=Map3D';
// document.body.appendChild(amapscript);
// const div = document.createElement('div');
// div.id = 'map';
// div.style.cssText = 'width:500px;height:500px;position:absolute';
// document.body.appendChild(div);
// const scene = new Scene({
// id: 'map',
// mapStyle: 'light', // 样式URL
// center: [ 120.19382669582967, 30.258134 ],
// pitch: 0,
// zoom: 2,
// maxZoom: 20,
// minZoom: 0
// });
// // const TileLayer = new TileLayer(null, {});
// });