---
title: Interface: IMatchObject
source: https://vjmap.com/en/doc/Interface_IMatchObject.html
---

# Interface: IMatchObject

目标匹配

### Table of contents

#### Properties

- [canOverlap](#canoverlap)
- [layer](#layer)
- [layeron](#layeron)
- [mapBounds](#mapbounds)
- [mapid](#mapid)
- [maxCount](#maxcount)
- [maxOverlap](#maxoverlap)
- [method](#method)
- [minReduceArea](#minreducearea)
- [objectBounds](#objectbounds)
- [objectIds](#objectids)
- [score](#score)
- [size](#size)
- [tolerance1](#tolerance1)
- [tolerance2](#tolerance2)
- [tolerance3](#tolerance3)
- [tolerance4](#tolerance4)
- [toleranceAngle](#toleranceangle)
- [useToleranceRange](#usetolerancerange)
- [version](#version)

### Properties

#### canOverlap

• `Optional` **canOverlap**: *boolean*

允许重叠 (默认false).

___

#### layer

• `Optional` **layer**: *string*

图层样式名.为空时，将由选择的实体的图层来决定

___

#### layeron

• `Optional` **layeron**: *string*

目标匹配的地图打开的图层

___

#### mapBounds

• `Optional` **mapBounds**: *string*

目标匹配的地图范围，默认为全图的数据范围.

___

#### mapid

• **mapid**: *string*

地图ID.

___

#### maxCount

• `Optional` **maxCount**: *number*

允许返回的最大条数. 默认 200

___

#### maxOverlap

• `Optional` **maxOverlap**: *number*

重叠比例 范围(0-0.8)，默认 0.3.

___

#### method

• `Optional` **method**: ``"matchTemplate"`` \| ``"matchPattern"``

方法. 默认 matchPattern

___

#### minReduceArea

• `Optional` **minReduceArea**: *number*

金字塔大小 范围(64-2048).默认256， 方法为matchPattern有效

___

#### objectBounds

• **objectBounds**: *string*

目标匹配的实体范围

___

#### objectIds

• `Optional` **objectIds**: *string*

目标匹配的实体objectid数组，用||隔开.

___

#### score

• `Optional` **score**: *number*

分数，小于此分类将不显示 (0 -1)，默认 0.6 .

___

#### size

• `Optional` **size**: *number*

匹配时的图像尺寸，默认10000

___

#### tolerance1

• `Optional` **tolerance1**: *number*

角度区间1开始角度. 方法为matchPattern有效

___

#### tolerance2

• `Optional` **tolerance2**: *number*

角度区间1结束角度. 方法为matchPattern有效

___

#### tolerance3

• `Optional` **tolerance3**: *number*

角度区间2开始角度. 方法为matchPattern有效

___

#### tolerance4

• `Optional` **tolerance4**: *number*

角度区间2结束角度. 方法为matchPattern有效

___

#### toleranceAngle

• `Optional` **toleranceAngle**: *number*

角度范围(-180, 180)有旋转的时候需要。方法为matchPattern有效. 默认180

___

#### useToleranceRange

• `Optional` **useToleranceRange**: *boolean*

是否使用角度区间范围,默认false. 方法为matchPattern有效

___

#### version

• `Optional` **version**: *string*

地图版本(为空时采用当前打开的地图版本).


<a name="interfacesinertiaoptionsmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / InertiaOptions
