首页 / 浏览问题 / 云GIS / 问题详情
二维地图加载
49EXP 2017年09月05日
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)加载地图的时候报这个错误,请问怎么解决

1个回答

您好,请您检查图层有没有正确添加,特别需要注意异步加载的图层(TiledDynamicRESTLayer等需要监听图层初始化事件添加图层的)必须异步加载以及注意异步问题(即代码执行顺序).
4,524EXP 2017年09月05日
...