二维地图加载

0 投票
136 浏览
VM5471:1 Uncaught TypeError: Cannot read property 'wrapDateLine' of null
    at initialize.moveByPx (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:48743)
    at initialize.pan (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:47564)
    at e.panMap (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:201480)
    at initialize.callback (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:157193)
    at initialize.dragmove (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:180896)
    at initialize.mousemove (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:181858)
    at initialize.triggerEvent (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:23182)
    at initialize.handleBrowserEvent (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:23589)
    at HTMLDivElement.eval (eval at <anonymous> (SuperMap-8.0.2-13626.js:3), <anonymous>:1:1867)加载地图的时候报这个错误,请问怎么解决
最新提问 9月 5, 2017 分类:  136次浏览 | 用户: Qman (5 分)

1个回答

0 投票
您好,请您检查图层有没有正确添加,特别需要注意异步加载的图层(TiledDynamicRESTLayer等需要监听图层初始化事件添加图层的)必须异步加载以及注意异步问题(即代码执行顺序).
最新回答 9月 5, 2017 用户: 李熙y 名扬四海 (4,380 分)
...