openlayers3 报错 Uncaught TypeError: M.split is not a function

时间:2024-03-23 18:31:16

问题描述

点击选中多边形区域时报错:Uncaught TypeError:  M.splitis not a function

openlayers3 报错 Uncaught TypeError: M.split is not a function

换成debugol文件,详细错误为:

Uncaught

Goog.asserts.AsserttionError{message: “Assertion failed: 4th instruction should be a string”, ….}

openlayers3 报错 Uncaught TypeError: M.split is not a function

 

解决方案

仔细回想,样式中的text属性我设置了数值型,改为字符串型就好啦 (为了记录该问题,本姑娘专门把错误还原了一遍)