Condition

LM. Condition

地图元素属性查询条件。

Constructor

new Condition(options)

Description:
  • 构造方法,设置查询范围。

Parameters:
Name Type Description
options object
Properties
Name Type Description
type string

类型,“cname”——中文名,“ename”——英文名,“keyword”——中英文名关键字,“code”——编码,“classcode”——分类,“circle”——周边。

value object

不同的类型对应不同的数据结构。

Properties
Name Type Description
text string

文本,在“cname”,“ename”,“keyword”,“code”下使用。

fuzzy boolean

模糊匹配,在“cname”,“ename”,“keyword”,“code”下使用,未设置时“keyword”下为true,其他false。

matchCase boolean

大小写匹配,在“cname”,“ename”,“keyword”下使用,未设置时为false。

classcode array.<number>

元素分类码数组,在“classcode”下使用。

x number

X坐标,在“circle”下使用。

y number

Y坐标,在“circle”下使用。

radius number

半径,在“circle”下使用。