Fx构造函数 # new Tangram(option) 几何对象基类 参数: 名称 类型 描述 option Object 属性键值对,用于拓展额外的属性字段 查看源代码 service/common/Tangram.js, line 8 方法 # getGeometryType() 获取几何类型名称,由子类实现 查看源代码 service/common/Tangram.js, line 36 # setByOL() 实现将openlayers的geomerty转换为zondy的几何类型,此方法由子类实现 查看源代码 service/common/Tangram.js, line 20 # toString() 对象转化为字符串 查看源代码 service/common/Tangram.js, line 28 # Trim(str, is_globalopt) 1.去除字符串前后所有空格 2.去除字符串中所有空格(包括中间空格,需要设置第2个参数为:g) 参数: 名称 类型 属性 默认值 描述 str String is_global String <optional> g 值为 g 的时候去除字符串中所有空格 查看源代码 service/common/Tangram.js, line 44