openlayers3 报错 Uncaught TypeError: M.split is not a function
问题描述:
点击选中多边形区域时报错:Uncaught TypeError: M.splitis not a function
换成debug的ol文件,详细错误为:
Uncaught
Goog.asserts.AsserttionError{message: “Assertion failed: 4th instruction should be a string”, ….}
解决方案:
仔细回想,样式中的text属性我设置了数值型,改为字符串型就好啦 (为了记录该问题,本姑娘专门把错误还原了一遍)