Fx构造函数
# new PolyLine(pointArropt, option)
线几何对象
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
pointArr |
Array |
<optional> |
new Array() | 一组点几何对象 Array< |
option |
Object | 属性键值对 |
||
nearDis |
Number |
<optional> |
null | 线搜素半径,只在做线查询时需赋值 |
继承关系
成员变量
方法
# setByOL(openlayersLine)
通过传入Openlayers的ol.geom.LineString类型来设置参数
参数:
名称 | 类型 | 描述 |
---|---|---|
openlayersLine |
ol.geom.LineString | Openlayers定义的折线对象 |
# Trim(str, is_globalopt)
1.去除字符串前后所有空格 2.去除字符串中所有空格(包括中间空格,需要设置第2个参数为:g)
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
str |
String | |||
is_global |
String |
<optional> |
g | 值为 g 的时候去除字符串中所有空格 |
- Inherited From: