记录openlayers遇到的坑——openlayers聚类cluster无法显示

今日发现有些点位不使用cluster时可以显示点位,但是使用cluster,却不能显示聚类,后来发现是因为坐标取得是字符串形式。在openlayers中加载点位的时候字符串也可以,但是聚类中不可以!所以尽量读取坐标时使用number,不要使用string类型。

记录openlayers遇到的坑——openlayers聚类cluster无法显示