无效的& # 39;instanceof # 39;在GeoExt3中操作ol3 .layer. base

invalid 'instanceof' operand ol.layer.Base in GeoExt3

本文关键字:操作 ol3 base layer instanceof 无效 GeoExt3      更新时间:2023-09-26

我在我的项目中集成树形图例演示时出现以下错误。

出现以下Javascript错误。

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

请提供帮助我的代码是从Git Hub复制粘贴Tree Legend Demo的GeoExt3

我认为这与js文件被拉。

这是CodePen上的一个工作示例

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