maptalks v0.44.2
maptalks.three.js:24 maptalks.registerWorkerAdapter is not defined,If you need to use ThreeVectorTileLayer,you can npm i maptalks@next,more https://github.com/maptalks/maptalks.js/tree/next
define @ maptalks.three.js:24
(匿名) @ maptalks.three.js:46
(匿名) @ maptalks.three.js:9
(匿名) @ maptalks.three.js:10
maptalks.three.js:9600 maptalks.three v0.10.1, requires maptalks@>=0.39.0.
DevTools 无法加载来源映射:无法加载 http://localhost:8080/plugin/maptalks.three.js.map 的内容:HTTP 错误:状态代码 404,net::ERR_HTTP_RESPONSE_CODE_FAILURE
maptalks.three.js:8659 Uncaught TypeError: polygon.getShell is not a function
at ThreeLayer.toShape (maptalks.three.js:8659:33)
at ThreeLayer.toExtrudeMesh (maptalks.three.js:8710:30)
at MengTest:5061:23
at Array.forEach ()
at ThreeLayer.threeLayer.prepareToDraw (MengTest:5052:18)
at ThreeRenderer.prepareDrawContext (maptalks.js:25967:54)
at ThreeRenderer.draw (maptalks.js:25885:12)
at ThreeRenderer._drawAndRecord (maptalks.js:6209:12)
at ThreeRenderer._tryToDraw (maptalks.js:6198:12)
at ThreeRenderer.render (maptalks.js:5730:14)
toShape @ maptalks.three.js:8659
toExtrudeMesh @ maptalks.three.js:8710
(匿名) @ MengTest:5061
threeLayer.prepareToDraw @ MengTest:5052
prepareDrawContext @ maptalks.js:25967
draw @ maptalks.js:25885
_drawAndRecord @ maptalks.js:6209
_tryToDraw @ maptalks.js:6198
render @ maptalks.js:5730
drawLayers @ maptalks.js:29834
renderFrame @ maptalks.js:29732
_frameLoop @ maptalks.js:30237
(匿名) @ maptalks.js:30239
requestAnimationFrame(异步)
requestAnimFrame @ maptalks.js:139
_frameLoop @ maptalks.js:30238
onLoad @ maptalks.js:29692
_Load @ maptalks.js:8468
Map @ maptalks.js:7267
(匿名) @ MengTest:5004
`
var resolutions = [];
var d = 2 6378137 Math.PI;
for (var i = 0; i < 30; i++) {
resolutions[i] = d / (256 * Math.pow(2, i));
}
maptalks v0.44.2 maptalks.three.js:24 maptalks.registerWorkerAdapter is not defined,If you need to use ThreeVectorTileLayer,you can npm i maptalks@next,more https://github.com/maptalks/maptalks.js/tree/next define @ maptalks.three.js:24 (匿名) @ maptalks.three.js:46 (匿名) @ maptalks.three.js:9 (匿名) @ maptalks.three.js:10 maptalks.three.js:9600 maptalks.three v0.10.1, requires maptalks@>=0.39.0. DevTools 无法加载来源映射:无法加载 http://localhost:8080/plugin/maptalks.three.js.map 的内容:HTTP 错误:状态代码 404,net::ERR_HTTP_RESPONSE_CODE_FAILURE
maptalks.three.js:8659 Uncaught TypeError: polygon.getShell is not a function at ThreeLayer.toShape (maptalks.three.js:8659:33) at ThreeLayer.toExtrudeMesh (maptalks.three.js:8710:30) at MengTest:5061:23 at Array.forEach ()
at ThreeLayer.threeLayer.prepareToDraw (MengTest:5052:18)
at ThreeRenderer.prepareDrawContext (maptalks.js:25967:54)
at ThreeRenderer.draw (maptalks.js:25885:12)
at ThreeRenderer._drawAndRecord (maptalks.js:6209:12)
at ThreeRenderer._tryToDraw (maptalks.js:6198:12)
at ThreeRenderer.render (maptalks.js:5730:14)
toShape @ maptalks.three.js:8659
toExtrudeMesh @ maptalks.three.js:8710
(匿名) @ MengTest:5061
threeLayer.prepareToDraw @ MengTest:5052
prepareDrawContext @ maptalks.js:25967
draw @ maptalks.js:25885
_drawAndRecord @ maptalks.js:6209
_tryToDraw @ maptalks.js:6198
render @ maptalks.js:5730
drawLayers @ maptalks.js:29834
renderFrame @ maptalks.js:29732
_frameLoop @ maptalks.js:30237
(匿名) @ maptalks.js:30239
requestAnimationFrame(异步)
requestAnimFrame @ maptalks.js:139
_frameLoop @ maptalks.js:30238
onLoad @ maptalks.js:29692
_Load @ maptalks.js:8468
Map @ maptalks.js:7267
(匿名) @ MengTest:5004
` var resolutions = []; var d = 2 6378137 Math.PI; for (var i = 0; i < 30; i++) { resolutions[i] = d / (256 * Math.pow(2, i)); }