2015-09-08 14 views
0

我在項目中集成樹形圖例Demo時出現以下錯誤。GeoExt3中無效的'instanceof'操作數ol.layer.Base

以下Javascript錯誤即將到來。

TypeError: invalid 'instanceof' operand ol.layer.Base

請提供幫助。我的代碼是從Git Hub的GeoExt3的Tree Legend演示覆制粘貼。

回答

1

我認爲它與被拉的js文件有關。

Heres a working example at CodePen

Ext.Loader.setConfig({ 
      enabled: true, 
      paths: { 
       'GeoExt': '../../src' 
      } 
     }); 
+0

我不得不把代碼,使這個過帳。我猜stacks討厭codePen。 – JesseRules

+0

這個js文件根據我的項目中的文件夾正確提取 –

+0

也許在guthub repo上打開一張票。我剛到他們的網站並重建它,它工作正常。但是如果你克隆它並且不起作用,請報告它。 – JesseRules